Skip to content

Commit 41657ea

Browse files
authored
fix(switch): add some missing types (#3994)
* fix: add some missing types * update
1 parent ea8c694 commit 41657ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/switch/index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ const switchProps = {
3131
autofocus: PropTypes.looseBool,
3232
loading: PropTypes.looseBool,
3333
checked: PropTypes.looseBool,
34+
onChange: PropTypes.func,
35+
onClick: PropTypes.func,
36+
onKeydown: PropTypes.func,
37+
onMouseup: PropTypes.func,
38+
'onUpdate:checked': PropTypes.func
3439
};
3540

3641
export type SwitchProps = Partial<ExtractPropTypes<typeof switchProps>>;

0 commit comments

Comments
 (0)