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