fix(switch): add some missing types (#3994)

* fix: add some missing types

* update
This commit is contained in:
ajuner 2021-04-27 22:10:37 +08:00 committed by GitHub
parent ea8c694cb1
commit 41657eacef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,11 @@ const switchProps = {
autofocus: PropTypes.looseBool,
loading: PropTypes.looseBool,
checked: PropTypes.looseBool,
onChange: PropTypes.func,
onClick: PropTypes.func,
onKeydown: PropTypes.func,
onMouseup: PropTypes.func,
'onUpdate:checked': PropTypes.func
};
export type SwitchProps = Partial<ExtractPropTypes<typeof switchProps>>;