TypeScript/tests/cases/compiler/testTypings.ts
2014-07-12 17:30:19 -07:00

13 lines
127 B
TypeScript

interface IComparable<T> {
compareTo(other: T);
}
declare function sort<U extends IComparable<U>>(items: U[]): U[];