28 lines
411 B
Plaintext
28 lines
411 B
Plaintext
=== tests/cases/compiler/testTypings.ts ===
|
|
interface IComparable<T> {
|
|
>IComparable : IComparable<T>
|
|
>T : T
|
|
|
|
compareTo(other: T);
|
|
>compareTo : (other: T) => any
|
|
>other : T
|
|
>T : T
|
|
}
|
|
|
|
declare function sort<U extends IComparable<U>>(items: U[]): U[];
|
|
>sort : <U extends IComparable<U>>(items: U[]) => U[]
|
|
>U : U
|
|
>IComparable : IComparable<T>
|
|
>U : U
|
|
>items : U[]
|
|
>U : U
|
|
>U : U
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|