mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 06:55:07 +08:00
fix(types): fix ignore native types when export types manually
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user