From 3b03ea32f52785f5aeb8c0b1d04566f0601b006d Mon Sep 17 00:00:00 2001 From: ggascoigne Date: Tue, 5 Nov 2019 13:37:06 -0800 Subject: [PATCH] remove Record from HeaderProps and CellProps (#1601) These definitions mask errors in the other definitions and there are better ways of extending these. See https://github.com/tannerlinsley/react-table/pull/1597 for an example of an existing prototype that was missing but harder to find because of these definitions. --- index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 26ac6ba..4039b66 100644 --- a/index.d.ts +++ b/index.d.ts @@ -159,12 +159,13 @@ export interface UseTableCellProps { export type HeaderProps = TableInstance & { column: ColumnInstance -} & Record +} + export type CellProps = TableInstance & { column: ColumnInstance row: Row cell: Cell -} & Record +} // NOTE: At least one of (id | accessor | Header as string) required export interface Accessor {