12 lines
127 B
TypeScript
12 lines
127 B
TypeScript
interface IComparable<T> {
|
|
compareTo(other: T);
|
|
}
|
|
|
|
declare function sort<U extends IComparable<U>>(items: U[]): U[];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|