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

0.3.3 • Public • Published

Installation

npm install --save @types/timsort

Summary

This package contains type definitions for timsort (https://github.com/mziccard/node-timsort).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/timsort.

index.d.ts

/**
 * @param array - The array to sort.
 * @param lo - First element in the range (inclusive). Default is 0
 * @param hi - Last element in the range. Default is last element
 */
export function sort(array: any[], lo: number, hi?: number): void;

/**
 * @param array - The array to sort.
 * @param compare - Item comparison function. Default is alphabetical
 * @param lo - First element in the range (inclusive).
 * @param hi - Last element in the range.
 */
export function sort<T>(
    array: T[],
    compare?: (a: T, b: T) => number,
    lo?: number,
    hi?: number,
): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Vunovati.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/timsort

Weekly Downloads

3,891

Version

0.3.3

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types