@types/natural-sort
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

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 19:07:05 GMT
  • Dependencies: none

Credits

These definitions were written by Antonio Morales, and Brian Crowell.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/natural-sort

Weekly Downloads

6,353

Version

1.0.0

License

MIT

Unpacked Size

3.62 kB

Total Files

5

Last publish

Collaborators

  • types