UNPKG

338 BTypeScriptView Raw
1export declare type SortComparatorResult = -1 | 0 | 1;
2export interface SortComparator<T = string> {
3 (a: T, b: T): SortComparatorResult;
4}
5export declare function sort_paths(paths: string[], sorter: SortComparator): string[];
6export declare const caseless_sort: SortComparator<string>;
7export declare const case_sort: SortComparator;