UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

15 lines (14 loc) 292 B
export declare enum SortOrder { ASC = "ASC", DSC = "DSC" } declare type State = { order?: SortOrder; by?: string; }; export default function useTableSort(initialState?: Partial<State>): { sorted: State; clear: () => void; sort: (id: string) => void; }; export {};