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

@@ -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