We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b21d2dc + 5478259 commit d240a95Copy full SHA for d240a95
types/web.d.ts
@@ -72,7 +72,7 @@ type InferFrom<T extends object> = T extends { to: infer TTo }
72
type Merge<A, B> = { [K in keyof A]: K extends keyof B ? B[K] : A[K] } & B
73
74
export type SetUpdateFn<DS extends object> = (
75
- ds: Pick<DS, Exclude<keyof DS, ExcludedProps>>
+ ds: Partial<Pick<DS, Exclude<keyof DS, ExcludedProps>>>
76
) => void
77
78
// The hooks do emulate React's 'ref' by accepting { ref?: React.RefObject<Controller> } and
0 commit comments