Skip to content

Instantly share code, notes, and snippets.

View kulak's full-sized avatar

Sergei Gnezdov kulak

View GitHub Profile
@kulak
kulak / react-table.d.ts
Last active September 6, 2018 21:26 — forked from geowarin/react-table.d.ts
works with TypeScript 3.0.1 and "react-table": "^6.8.6"
declare module 'react-table' {
type AccessorFunction = (row: object) => any
type Accessor = string | string[] | object | AccessorFunction
type Aggregator = (values: any, rows: any) => any
type TableCellRenderer = ((data: any, column: any) => React.ReactNode) | React.ReactNode
type FilterRender = (params: { column: Column, filter: any, onFilterChange: Function, key?: string }) => React.ReactElement<any>
type ComponentPropsGetter0 = (finalState: any, rowInfo: undefined, column: undefined, instance?: ReactTable) => object | undefined
type ComponentPropsGetterR = (finalState: any, rowInfo?: RowInfo, column?: undefined, instance?: ReactTable) => object | undefined