npm.io
1.0.0 • Published 1 year ago

@types/natural-sort

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.