17 lines
177 B
TypeScript
17 lines
177 B
TypeScript
|
//// [testTypings.ts]
|
||
|
interface IComparable<T> {
|
||
|
compareTo(other: T);
|
||
|
}
|
||
|
|
||
|
declare function sort<U extends IComparable<U>>(items: U[]): U[];
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//// [testTypings.js]
|