2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/promises.ts ===
|
|
|
|
interface Promise<T> {
|
|
|
|
>Promise : Promise<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => U): Promise<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => U): Promise<U>; <U>(success?: (value: T) => Promise<U>): Promise<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => U
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>U : U
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => Promise<U>): Promise<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => U): Promise<U>; <U>(success?: (value: T) => Promise<U>): Promise<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => Promise<U>
|
|
|
|
>value : T
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
value: T;
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|