From f23f06b301377fb81e79ef57be624e8a99828171 Mon Sep 17 00:00:00 2001 From: Yuliya Date: Fri, 2 Mar 2018 17:55:56 +0300 Subject: [PATCH] fix(react-table): fix FilterRender params --- 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 2ab2d2a821..2915a24857 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -5,12 +5,12 @@ // TypeScript Version: 2.6 import * as React from 'react'; -export type ReactTableFunction = () => void; +export type ReactTableFunction = (value?: any) => void; export type AccessorFunction = (row: object) => any; export type Accessor = string | string[] | object | AccessorFunction; export type Aggregator = (values: any, rows: any) => any; export type TableCellRenderer = ((data: any, column: any) => React.ReactNode) | React.ReactNode; -export type FilterRender = (params: { column: Column, filter: any, onFilterChange: ReactTableFunction, key?: string }) => React.ReactElement; +export type FilterRender = (params: { column: Column, filter: any, onChange: ReactTableFunction, key?: string }) => React.ReactElement; export type PivotRenderer = ((cellInfo: any) => React.ReactNode) | (() => any) | string | React.ReactNode; export type ComponentPropsGetter0 = (finalState: any, rowInfo: undefined, column: undefined, instance?: any) => object | undefined;