From 6247ba3a1e593b297321f68c1b7bb0dee2c3ea1e Mon Sep 17 00:00:00 2001 From: zhangxiaofan <40513678+workkk98@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:37:56 +0800 Subject: [PATCH] fix(types): function constructor should be a Function (#972) Co-authored-by: zhanghefan --- 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