UNPKG

solid-awesome-hooks

Version:
15 lines (14 loc) 527 B
export declare enum SortState { ASCENDING = 1, DESCENDING = -1 } export declare const useSortState: (initialSortState?: SortState) => { order: import("solid-js").Accessor<SortState>; setOrder: import("solid-js").Setter<SortState>; isAscending: import("solid-js").Accessor<boolean>; isDescending: import("solid-js").Accessor<boolean>; /** Switches order to another one */ toggleOrder: () => SortState; /** Resets sort order to the initial */ resetOrder: () => SortState; };