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.