| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | export as namespace stable; |
| 2 | export = stable; | ||||
| 3 | |||||
| 4 | type Comparator<T> = ((a : T, b : T)=>boolean) | ((a: T, b : T)=>number); | ||||
| 5 | |||||
| 6 | declare function stable<T>(array : T[], comparator? : Comparator<T>) : T[]; | ||||
| 7 | declare namespace stable { | ||||
| 8 | export function inplace<T>(array: T[], comparator? : Comparator<T>) : T[]; | ||||
| 9 | } | ||||