UNPKG

@table-library/react-table-library

Version:
18 lines (17 loc) 672 B
import { State, Modifier } from '@table-library/react-table-library/types/common'; import { TableNode } from '@table-library/react-table-library/types/table'; export declare type PaginationOptions = { isServer?: boolean; }; export declare type PaginationOptionsSound = Required<PaginationOptions>; export declare type PaginationFunctions = { onSetPage: (page: number) => void; onSetSize: (size: number) => void; }; export declare type Pagination<T extends TableNode> = { state: State; fns: PaginationFunctions; options: PaginationOptionsSound; modifier: Modifier<T>; }; export declare type Pages = Record<string, TableNode[]>;