source: trip-planner-front/node_modules/stable/index.d.ts@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 305 bytes
Line 
1export as namespace stable;
2export = stable;
3
4type Comparator<T> = ((a : T, b : T)=>boolean) | ((a: T, b : T)=>number);
5
6declare function stable<T>(array : T[], comparator? : Comparator<T>) : T[];
7declare namespace stable {
8 export function inplace<T>(array: T[], comparator? : Comparator<T>) : T[];
9}
Note: See TracBrowser for help on using the repository browser.