TypeScript/tests/baselines/reference/testTypings.js
2014-07-12 17:30:19 -07:00

17 lines
177 B
JavaScript

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