TypeScript/tests/cases/compiler/testTypings.ts

13 lines
127 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface IComparable<T> {
compareTo(other: T);
}
declare function sort<U extends IComparable<U>>(items: U[]): U[];