@types/array-sort
TypeScript definitions for array-sort
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/array-sort 
SYNC missed versions from official npm registry.

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 definitions for array-sort 1.0
// Project: https://github.com/jonschlinkert/array-sort
// Definitions by: Daniel Schmidt <https://github.com/DanielMSchmidt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 22 Sep 2023 18:11:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Daniel Schmidt.

Current Tags

  • 1.0.1                                ...           latest (3 years ago)
  • 1.0.0                                ...           ts2.0 (8 years ago)
  • 1.0.0                                ...           ts2.1 (8 years ago)
  • 1.0.0                                ...           ts2.2 (8 years ago)
  • 1.0.0                                ...           ts2.3 (8 years ago)
  • 1.0.0                                ...           ts2.4 (8 years ago)
  • 1.0.0                                ...           ts2.5 (8 years ago)
  • 1.0.0                                ...           ts2.6 (8 years ago)
  • 1.0.0                                ...           ts2.7 (8 years ago)
  • 1.0.0                                ...           ts2.8 (8 years ago)
  • 1.0.0                                ...           ts2.9 (8 years ago)
  • 1.0.0                                ...           ts3.0 (8 years ago)
  • 1.0.0                                ...           ts3.1 (8 years ago)
  • 1.0.0                                ...           ts3.2 (8 years ago)
  • 1.0.0                                ...           ts3.3 (8 years ago)
  • 1.0.0                                ...           ts3.4 (8 years ago)
  • 1.0.0                                ...           ts3.5 (8 years ago)
  • 1.0.0                                ...           ts3.6 (8 years ago)
  • 1.0.0                                ...           ts3.7 (8 years ago)
  • 1.0.0                                ...           ts3.8 (8 years ago)
  • 1.0.0                                ...           ts3.9 (8 years ago)
  • 1.0.0                                ...           ts4.0 (8 years ago)
  • 1.0.0                                ...           ts4.1 (8 years ago)
  • 1.0.0                                ...           ts4.2 (8 years ago)
  • 1.0.0                                ...           ts4.3 (8 years ago)
  • 1.0.0                                ...           ts4.4 (8 years ago)
  • 1.0.1                                ...           ts4.5 (3 years ago)
  • 1.0.1                                ...           ts4.6 (3 years ago)
  • 1.0.1                                ...           ts4.7 (3 years ago)
  • 1.0.1                                ...           ts4.8 (3 years ago)
  • 1.0.1                                ...           ts4.9 (3 years ago)
  • 1.0.1                                ...           ts5.0 (3 years ago)
  • 1.0.1                                ...           ts5.1 (3 years ago)
  • 1.0.1                                ...           ts5.2 (3 years ago)
  • 1.0.1                                ...           ts5.3 (3 years ago)

2 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |