Skip to content

Commit d240a95

Browse files
authored
Merge pull request pmndrs#542 from vlazh/patch-2
Make 'set' function input object properties partial
2 parents b21d2dc + 5478259 commit d240a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/web.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type InferFrom<T extends object> = T extends { to: infer TTo }
7272
type Merge<A, B> = { [K in keyof A]: K extends keyof B ? B[K] : A[K] } & B
7373

7474
export type SetUpdateFn<DS extends object> = (
75-
ds: Pick<DS, Exclude<keyof DS, ExcludedProps>>
75+
ds: Partial<Pick<DS, Exclude<keyof DS, ExcludedProps>>>
7676
) => void
7777

7878
// The hooks do emulate React's 'ref' by accepting { ref?: React.RefObject<Controller> } and

0 commit comments

Comments
 (0)