UNPKG

@nethesis/vue-components

Version:

This library contains: - a collection of Vue 3 components based on [Flowbite](https://flowbite.com/) - a set of utility functions

5 lines 433 B
import { type MaybeRefOrGetter } from 'vue'; export declare function useSort<T>(items: MaybeRefOrGetter<T[]>, sortKey: MaybeRefOrGetter<keyof T>, descending?: MaybeRefOrGetter<boolean>, sortFunctions?: Partial<Record<keyof T, (a: T, b: T) => number>>): { sortedItems: import("vue").Ref<import("@vue/reactivity").UnwrapRefSimple<T>[], T[] | import("@vue/reactivity").UnwrapRefSimple<T>[]>; }; //# sourceMappingURL=useSort.d.ts.map