fix(types): fix ignore native types when export types manually

This commit is contained in:
unix
2020-04-05 03:53:36 +08:00
parent 4bd6f11468
commit 535feb2be3
13 changed files with 13 additions and 13 deletions

View File

@@ -153,7 +153,7 @@ type SelectComponent<P = {}> = React.FC<P> & {
Option: typeof SelectOption
}
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps>
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs
(Select as SelectComponent<ComponentProps>).defaultProps = defaultProps