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

1.0.3 • Public • Published

Installation

npm install --save @types/array-sort

Summary

This package contains type definitions for array-sort (https://github.com/jonschlinkert/array-sort).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-sort.

index.d.ts

type Comparator<T> = (a: T, b: T) => number;
type ComparisonArg<T> = string | Comparator<T>;
type ComparisonArgs<T> = ComparisonArg<T> | Array<ComparisonArg<T>>;

interface Options {
    readonly reverse: boolean;
}

declare function arraySort<T>(
    arr: T[],
    props?: ComparisonArgs<T>,
    options?: Options,
): T[];

export default arraySort;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Daniel Schmidt.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/array-sort

Weekly Downloads

5,734

Version

1.0.3

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types