TypeScript/tests/baselines/reference/testTypings.js

17 lines
177 B
TypeScript
Raw Normal View History

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