UNPKG

@schema-render/search-table-react

Version:
12 lines (11 loc) 591 B
import type { IObjectAny } from '@schema-render/core-react'; import type { IColumnType, ITableProps } from '../../../typings/table'; interface ISorterOptions { arrDataIndex: string[]; sortOrder: IColumnType['sortOrder']; sortType: IColumnType['sortType']; sortDataExtractor?: IColumnType['sortDataExtractor']; sortStringValueTransform: ITableProps['sortStringValueTransform']; } export declare const localSorter: (a: IObjectAny, b: IObjectAny, { sortType, sortOrder, arrDataIndex, sortDataExtractor, sortStringValueTransform, }: ISorterOptions) => 1 | 0 | -1; export {};