From cd5fa94c143ed8f636b14688e25f34abf6dc65ad Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 14 Apr 2020 22:34:17 -0500 Subject: [PATCH] Update index.d.ts (#43876) see https://github.com/tannerlinsley/react-table/blob/master/src/hooks/useTable.js#L52 --- 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 1f63e82a19..80b9b982d3 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -169,7 +169,7 @@ export type UseTableOptions = { data: D[]; } & Partial<{ initialState: Partial>; - reducer: (newState: TableState, action: ActionType, previousState: TableState) => TableState; + stateReducer: (newState: TableState, action: ActionType, previousState: TableState) => TableState; useControlledState: (state: TableState, meta: Meta) => TableState; defaultColumn: Partial>; getSubRows: (originalRow: D, relativeIndex: number) => D[];