mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 06:09:30 +08:00
9 lines
305 B
Text
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[];
|
|
}
|