51888a7894ed178b1bacea237e80b5428e4befdefaac646ab7aa322c4d9f03296c01dbc45c8659cae113584082eac614b9201b9621fc3ebf2e6a7d2cdb838b 305 B

123456789
  1. export as namespace stable;
  2. export = stable;
  3. type Comparator<T> = ((a : T, b : T)=>boolean) | ((a: T, b : T)=>number);
  4. declare function stable<T>(array : T[], comparator? : Comparator<T>) : T[];
  5. declare namespace stable {
  6. export function inplace<T>(array: T[], comparator? : Comparator<T>) : T[];
  7. }