UNPKG

@vitorlans/react-table-ui

Version:

Out-of-the-box UI for React-Table 7

11 lines (10 loc) 527 B
import type { UseTableOptions, TableState } from './ReactTable'; import type { DataType, StateChangeHandler } from './DataType'; /** Type interface of Table specific options. * @category Options */ export interface TableOptions<Data extends DataType> extends Omit<UseTableOptions<Data>, 'columns' | 'data'> { /** Callback executed when table's state is updated. * The function must be wrapped in useCallback hook. */ onStateChange?: StateChangeHandler<TableState<Data>>; } export default TableOptions;