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:
@@ -82,7 +82,7 @@ const Table: React.FC<React.PropsWithChildren<TableProps>> = ({
|
||||
type TableComponent<P = {}> = React.FC<P> & {
|
||||
Column: typeof TableColumn
|
||||
}
|
||||
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps>
|
||||
type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs
|
||||
|
||||
(Table as TableComponent<ComponentProps>).defaultProps = defaultProps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user