2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-08-19 04:56:03 +02:00
|
|
|
>TPromise : TPromise<V>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>error : (err: any) => TPromise<U>
|
|
|
|
>err : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>TPromise : TPromise<V>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>progress : ProgressCallback
|
|
|
|
>ProgressCallback : ProgressCallback
|
2014-08-19 04:56:03 +02:00
|
|
|
>TPromise : TPromise<V>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
}
|