Skip to content
Permalink
Browse files

remove Record from HeaderProps and CellProps (#1601)

These definitions mask errors in the other definitions and there are better
ways of extending these.

See #1597 for an
example of an existing prototype that was missing but harder to find
because of these definitions.
  • Loading branch information...
ggascoigne authored and tannerlinsley committed Nov 5, 2019
1 parent 61f0ded commit 3b03ea32f52785f5aeb8c0b1d04566f0601b006d
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.d.ts
@@ -159,12 +159,13 @@ export interface UseTableCellProps<D extends object> {

export type HeaderProps<D extends object> = TableInstance<D> & {
column: ColumnInstance<D>
} & Record<string, any>
}

export type CellProps<D extends object> = TableInstance<D> & {
column: ColumnInstance<D>
row: Row<D>
cell: Cell<D>
} & Record<string, any>
}

// NOTE: At least one of (id | accessor | Header as string) required
export interface Accessor<D extends object> {

0 comments on commit 3b03ea3

Please sign in to comment.
You can’t perform that action at this time.