Skip to content

Commit 6247ba3

Browse files
workkk98zhanghefan
and
zhanghefan
authored
fix(types): function constructor should be a Function (#972)
Co-authored-by: zhanghefan <[email protected]>
1 parent 5e3fc1e commit 6247ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/componentProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type InferPropType<T> = T extends null
5959
? boolean
6060
: T extends DateConstructor | { type: DateConstructor}
6161
? Date
62-
: T extends FunctionConstructor
62+
: T extends FunctionConstructor | { type: FunctionConstructor }
6363
? Function
6464
: T extends Prop<infer V, infer D>
6565
? unknown extends V

0 commit comments

Comments
 (0)