What's the best way to write this useReducer in TypeScript: ```js const [{ firstName, lastName }, setName] = useReducer( (prev, next) => ({ ...prev, ...next }), { firstName: "", lastName: "" } ); ``` I was thinking this, but I wonder if there's a better way. ```ts type TName = { firstName: string; lastName: string }; const [{ firstName, lastName }, setName] = useReducer( (prev: TName, next: Partial<TName>) => ({ ...prev, ...next }), { firstName: "", lastName: "" } ); ```