Urara-Blog/node_modules/.pnpm-store/v3/files/26/51888a7894ed178b1bacea237e80b5428e4befdefaac646ab7aa322c4d9f03296c01dbc45c8659cae113584082eac614b9201b9621fc3ebf2e6a7d2cdb838b
2022-08-14 01:14:53 +08:00

9 lines
305 B
Text

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[];
}