File: index.d.ts

package info (click to toggle)
node-stable 0.1.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: javascript: 153; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
export as namespace stable;
export = stable;

type Comparator<T> = ((a : T, b : T)=>boolean) | ((a: T, b : T)=>number);

declare function stable<T>(array : T[], comparator? : Comparator<T>) : T[];
declare namespace stable {
    export function inplace<T>(array: T[], comparator? : Comparator<T>) : T[];
}