From 50037f1669a4947bae52bf97e87fa346d9770687 Mon Sep 17 00:00:00 2001 From: Rohit Garg <42495927+gargroh@users.noreply.github.com> Date: Fri, 10 Apr 2020 01:17:46 +0530 Subject: [PATCH] [react-table] Add role key in props & remove unused key (#43762) * Removing un-used key initialRowStateKey * Add `role` key as acceptable * name update --- types/react-table/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index 88d52f22d6..d98b4cd773 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/tannerlinsley/react-table // Definitions by: Guy Gascoigne-Piggford , // Michael Stramel -// gargroh +// Rohit Garg // Jason Clark // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.5 @@ -66,6 +66,7 @@ export interface Row extends UseTableRowProps {} export interface TableCommonProps { style?: CSSProperties; className?: string; + role?: string; } export interface TableProps extends TableCommonProps {} @@ -122,7 +123,6 @@ export type UseTableOptions = { reducer: (newState: TableState, action: ActionType, previousState: TableState) => TableState; useControlledState: (state: TableState, meta: Meta) => TableState; defaultColumn: Partial>; - initialRowStateKey: IdType; getSubRows: (originalRow: D, relativeIndex: number) => D[]; getRowId: (originalRow: D, relativeIndex: number, parent?: Row) => string; }>;