TypeScript/tests/baselines/reference/ipromise3.types

100 lines
5.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/ipromise3.ts ===
interface IPromise3<T> {
>IPromise3 : IPromise3<T>
>T : T
2014-08-15 23:33:16 +02:00
then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void ): IPromise3<U>;
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
>U : U
>success : (value: T) => IPromise3<U>
>value : T
>T : T
>IPromise3 : IPromise3<T>
>U : U
>error : (error: any) => IPromise3<U>
>error : any
>IPromise3 : IPromise3<T>
>U : U
>progress : (progress: any) => void
>progress : any
>IPromise3 : IPromise3<T>
>U : U
2014-08-15 23:33:16 +02:00
then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3<U>;
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
>U : U
>success : (value: T) => IPromise3<U>
>value : T
>T : T
>IPromise3 : IPromise3<T>
>U : U
>error : (error: any) => U
>error : any
>U : U
>progress : (progress: any) => void
>progress : any
>IPromise3 : IPromise3<T>
>U : U
2014-08-15 23:33:16 +02:00
then<U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void ): IPromise3<U>;
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
>U : U
>success : (value: T) => U
>value : T
>T : T
>U : U
>error : (error: any) => IPromise3<U>
>error : any
>IPromise3 : IPromise3<T>
>U : U
>progress : (progress: any) => void
>progress : any
>IPromise3 : IPromise3<T>
>U : U
2014-08-15 23:33:16 +02:00
then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3<U>;
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
>U : U
>success : (value: T) => U
>value : T
>T : T
>U : U
>error : (error: any) => U
>error : any
>U : U
>progress : (progress: any) => void
>progress : any
>IPromise3 : IPromise3<T>
>U : U
2014-08-15 23:33:16 +02:00
done? <U>(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void;
>done : <U>(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void
>U : U
>success : (value: T) => any
>value : T
>T : T
>error : (error: any) => any
>error : any
>progress : (progress: any) => void
>progress : any
2014-08-15 23:33:16 +02:00
}
var p1: IPromise3<string>;
>p1 : IPromise3<string>
>IPromise3 : IPromise3<T>
2014-08-15 23:33:16 +02:00
var p2: IPromise3<string> = p1.then(function (x) {
>p2 : IPromise3<string>
>IPromise3 : IPromise3<T>
2014-08-22 03:39:46 +02:00
>p1.then(function (x) { return x;}) : IPromise3<string>
>p1.then : { <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
>p1 : IPromise3<string>
>then : { <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
2014-08-22 03:39:46 +02:00
>function (x) { return x;} : (x: string) => string
>x : string
2014-08-15 23:33:16 +02:00
return x;
>x : string
2014-08-15 23:33:16 +02:00
});