From d29e8cbba959ef2885256870e61723fc738367f1 Mon Sep 17 00:00:00 2001 From: zhanghefan Date: Thu, 20 Oct 2022 23:33:15 +0800 Subject: [PATCH] fix(types): function constructor should be a Function --- src/component/componentProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/componentProps.ts b/src/component/componentProps.ts index 7abf0d4..0cac1bc 100644 --- a/src/component/componentProps.ts +++ b/src/component/componentProps.ts @@ -59,7 +59,7 @@ type InferPropType = T extends null ? boolean : T extends DateConstructor | { type: DateConstructor} ? Date - : T extends FunctionConstructor + : T extends FunctionConstructor | { type: FunctionConstructor } ? Function : T extends Prop ? unknown extends V