Files
infocom-systems-design/node_modules/@headlessui/react/dist/hooks/use-by-comparator.d.ts
2025-10-03 22:27:28 +03:00

3 lines
222 B
TypeScript

export type ByComparator<T> = (NonNullable<T> extends never ? string : keyof NonNullable<T> & string) | ((a: T, z: T) => boolean);
export declare function useByComparator<T>(by?: ByComparator<T>): (a: T, z: T) => boolean;