npm.io
0.3.3 • Published 2 years ago

@types/timsort

Licence
MIT
Version
0.3.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Vunovati.