Skip to content

Commit ec0d681

Browse files
fix(overmind): propely handle nested partial function
1 parent aeb9b92 commit ec0d681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/node_modules/overmind/src/internalTypes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export type SubType<Base, Condition> = Pick<
66
{ [Key in keyof Base]: Base[Key] extends Condition ? Key : never }[keyof Base]
77
>
88

9-
export type NestedPartial<T> = T extends object
10-
? Partial<{ [P in keyof T]: NestedPartial<T[P]> }>
11-
: T
9+
export type NestedPartial<T> = T extends Function
10+
? T
11+
: Partial<{ [P in keyof T]: NestedPartial<T[P]> }>
1212

1313
export type Options = {
1414
name?: string

0 commit comments

Comments
 (0)