Skip to content

Commit

Permalink
fix(types): function constructor should be a Function (#972)
Browse files Browse the repository at this point in the history
Co-authored-by: zhanghefan <zhanghefan@bytedance.com>
  • Loading branch information
workkk98 and zhanghefan committed Oct 24, 2022
1 parent 5e3fc1e commit 6247ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type InferPropType<T> = T extends null
? boolean
: T extends DateConstructor | { type: DateConstructor}
? Date
: T extends FunctionConstructor
: T extends FunctionConstructor | { type: FunctionConstructor }
? Function
: T extends Prop<infer V, infer D>
? unknown extends V
Expand Down

0 comments on commit 6247ba3

Please sign in to comment.