From e372c21d58db52dccae44984dc56e7ce02108a77 Mon Sep 17 00:00:00 2001 From: Guy Gascoigne-Piggford Date: Thu, 13 Feb 2020 15:14:51 -0800 Subject: [PATCH] fix getRowId type signature (#42354) --- types/react-table/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index dde161e115..a91388022b 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -112,7 +112,7 @@ export type UseTableOptions = { defaultColumn: Partial>; initialRowStateKey: IdType; getSubRows: (originalRow: D, relativeIndex: number) => D[]; - getRowId: (originalRow: D, relativeIndex: number) => IdType; + getRowId: (originalRow: D, relativeIndex: number, parent?: Row) => string; }>; export type PropGetter> =