From ec0d681802e828db79ae4aaeda0de5c2c6834c74 Mon Sep 17 00:00:00 2001 From: christianalfoni Date: Fri, 11 Jan 2019 22:44:53 +0100 Subject: [PATCH] fix(overmind): propely handle nested partial function --- packages/node_modules/overmind/src/internalTypes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/overmind/src/internalTypes.ts b/packages/node_modules/overmind/src/internalTypes.ts index 342caa14..9a668a91 100644 --- a/packages/node_modules/overmind/src/internalTypes.ts +++ b/packages/node_modules/overmind/src/internalTypes.ts @@ -6,9 +6,9 @@ export type SubType = Pick< { [Key in keyof Base]: Base[Key] extends Condition ? Key : never }[keyof Base] > -export type NestedPartial = T extends object - ? Partial<{ [P in keyof T]: NestedPartial }> - : T +export type NestedPartial = T extends Function + ? T + : Partial<{ [P in keyof T]: NestedPartial }> export type Options = { name?: string