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

@@ -206,7 +206,7 @@ type InputComponent<P = {}> = React.FC<P> & {
Textarea: typeof Textarea
}
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps>
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs
(Input as InputComponent<ComponentProps>).defaultProps = defaultProps