readdir
Version:
Reads a directory and return results with the ability to use Ant style file match patterns
8 lines (7 loc) • 338 B
TypeScript
export declare type SortComparatorResult = -1 | 0 | 1;
export interface SortComparator<T = string> {
(a: T, b: T): SortComparatorResult;
}
export declare function sort_paths(paths: string[], sorter: SortComparator): string[];
export declare const caseless_sort: SortComparator<string>;
export declare const case_sort: SortComparator;