rucken
Version:
Console tools and scripts for nx and not only that I (EndyKaufman) use to automate the workflow and speed up the development process
44 lines (43 loc) • 1.47 kB
TypeScript
/**
* @fileoverview Cross-platform file path sorting library for Node.js
* @author Milos Djermanovic <milos.djermanovic@gmail.com>
*/
/**
* Cross-platform file path sorting function.
*
* @param {(string[]|any[])} paths Array of path strings or objects containing path strings.
* @param {SortOptions} [options] Sort options.
* @returns {(string[]|any[])} Sorted array.
*/
export declare function sort(paths: any, options: {
shallowFirst?: boolean;
deepFirst?: boolean;
homePathsSupported?: boolean;
segmentCompareFn?: (a: any, b: any) => any;
}): any;
/**
* POSIX-specific file path sorting function.
*
* @param {(string[]|any[])} paths Array of path strings or objects containing path strings.
* @param {SortOptions} [options] Sort options.
* @returns {(string[]|any[])} Sorted array.
*/
export declare function posixSort(paths: any, options: {
shallowFirst?: boolean;
deepFirst?: boolean;
homePathsSupported?: boolean;
segmentCompareFn?: (a: any, b: any) => any;
}): any;
/**
* Windows-specific file path sorting function.
*
* @param {(string[]|any[])} paths Array of path strings or objects containing path strings.
* @param {SortOptions} [options] Sort options.
* @returns {(string[]|any[])} Sorted array.
*/
export declare function windowsSort(paths: any, options: {
shallowFirst?: boolean;
deepFirst?: boolean;
homePathsSupported?: boolean;
segmentCompareFn?: (a: any, b: any) => any;
}): any;