Skip to content

Commit

Permalink
fix: prop types for HTML attributes (#794)
Browse files Browse the repository at this point in the history
The types for ListRootProps, TableRootProps and GridRootProps were passing the tag name to React.HTMLProps, instead of the HTML element type.
  • Loading branch information
davbrito committed Nov 23, 2022
1 parent 169c2b2 commit 7ae2d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ export interface GroupIndexLocationWithAlign extends LocationOptions {

export type IndexLocationWithAlign = FlatIndexLocationWithAlign | GroupIndexLocationWithAlign

export type ListRootProps = Omit<React.HTMLProps<'div'>, 'ref' | 'data'>
export type TableRootProps = Omit<React.HTMLProps<'table'>, 'ref' | 'data'>
export type GridRootProps = Omit<React.HTMLProps<'div'>, 'ref' | 'data'>
export type ListRootProps = Omit<React.HTMLProps<HTMLDivElement>, 'ref' | 'data'>
export type TableRootProps = Omit<React.HTMLProps<HTMLTableElement>, 'ref' | 'data'>
export type GridRootProps = Omit<React.HTMLProps<HTMLDivElement>, 'ref' | 'data'>

export interface GridItem<D> {
index: number
Expand Down

0 comments on commit 7ae2d7f

Please sign in to comment.