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