Skip to content

Commit

Permalink
fix(overmind): propely handle nested partial function
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Jan 11, 2019
1 parent aeb9b92 commit ec0d681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/node_modules/overmind/src/internalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export type SubType<Base, Condition> = Pick<
{ [Key in keyof Base]: Base[Key] extends Condition ? Key : never }[keyof Base]
>

export type NestedPartial<T> = T extends object
? Partial<{ [P in keyof T]: NestedPartial<T[P]> }>
: T
export type NestedPartial<T> = T extends Function
? T
: Partial<{ [P in keyof T]: NestedPartial<T[P]> }>

export type Options = {
name?: string
Expand Down

0 comments on commit ec0d681

Please sign in to comment.