TypeScript/tests/baselines/reference/exportedInterfaceInaccessibleInCallbackInModule.types
2014-08-18 19:56:03 -07:00

43 lines
1.3 KiB
Plaintext

=== tests/cases/compiler/exportedInterfaceInaccessibleInCallbackInModule.ts ===
export interface ProgressCallback {
>ProgressCallback : ProgressCallback
(progress:any):any;
>progress : any
}
// --- Generic promise
export declare class TPromise<V> {
>TPromise : TPromise<V>
>V : V
constructor(init:(complete: (value:V)=>void, error:(err:any)=>void, progress:ProgressCallback)=>void, oncancel?: any);
>init : (complete: (value: V) => void, error: (err: any) => void, progress: ProgressCallback) => void
>complete : (value: V) => void
>value : V
>V : V
>error : (err: any) => void
>err : any
>progress : ProgressCallback
>ProgressCallback : ProgressCallback
>oncancel : any
// removing this method fixes the error squiggle.....
public then<U>(success?: (value:V)=>TPromise<U>, error?: (err:any)=>TPromise<U>, progress?:ProgressCallback): TPromise<U>;
>then : <U>(success?: (value: V) => TPromise<U>, error?: (err: any) => TPromise<U>, progress?: ProgressCallback) => TPromise<U>
>U : U
>success : (value: V) => TPromise<U>
>value : V
>V : V
>TPromise : TPromise<V>
>U : U
>error : (err: any) => TPromise<U>
>err : any
>TPromise : TPromise<V>
>U : U
>progress : ProgressCallback
>ProgressCallback : ProgressCallback
>TPromise : TPromise<V>
>U : U
}