Installation
npm install --save @types/natural-sort
Summary
This package contains type definitions for natural-sort (https://github.com/studio-b12/natural-sort).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/natural-sort.
index.d.ts
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;
Additional Details
- Last updated: Mon, 14 Oct 2024 1905 GMT
- Dependencies: none
Credits
These definitions were written by Antonio Morales, and Brian Crowell.