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