npm install --save @types/natural-sort
This package contains type definitions for natural-sort (https://github.com/studio-b12/natural-sort).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/natural-sort.
export as namespace naturalSort;
declare namespace naturalSort {
interface Options {
/** Set to true to make the sort case-sensitive. */
caseSensitive?: boolean | undefined;
/** Set to 'desc' to sort in reverse. */
direction?: "desc" | undefined;
}
}
declare function naturalSort(options?: naturalSort.Options): (a: string | number, b: string | number) => number;
export = naturalSort;
- Last updated: Mon, 14 Oct 2024 19:07:05 GMT
- Dependencies: none
These definitions were written by Antonio Morales, and Brian Crowell.