99 lines
5.2 KiB
Text
99 lines
5.2 KiB
Text
=== tests/cases/compiler/ipromise3.ts ===
|
|
interface IPromise3<T> {
|
|
>IPromise3 : IPromise3<T>
|
|
>T : T
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
}
|
|
var p1: IPromise3<string>;
|
|
>p1 : IPromise3<string>
|
|
>IPromise3 : IPromise3<T>
|
|
|
|
var p2: IPromise3<string> = p1.then(function (x) {
|
|
>p2 : IPromise3<string>
|
|
>IPromise3 : IPromise3<T>
|
|
>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>; }
|
|
>function (x) { return x;} : (x: string) => string
|
|
>x : string
|
|
|
|
return x;
|
|
>x : string
|
|
|
|
});
|
|
|