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