@carbon/react
Version:
React components for the Carbon Design System
16 lines (15 loc) • 562 B
TypeScript
export { sortStates };
export const initialSortState: import("./sortStates").DataTableSortState;
export function getNextSortDirection(prevHeader: string, header: string, prevState: string): string;
export function getNextSortState(props: any, state: any, { key }: {
key: any;
}): any;
export function getSortedState(props: {
locale: string;
sortRows: Function;
}, state: {
rowIds: Array<string>;
cellsById: object;
initialRowOrder: Array<string>;
}, key: string, sortDirection: string): object;
import { sortStates } from './sortStates';