=== tests/cases/compiler/exportedInterfaceInaccessibleInCallbackInModule.ts === export interface ProgressCallback { >ProgressCallback : ProgressCallback (progress:any):any; >progress : any } // --- Generic promise export declare class TPromise { >TPromise : TPromise >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(success?: (value:V)=>TPromise, error?: (err:any)=>TPromise, progress?:ProgressCallback): TPromise; >then : (success?: (value: V) => TPromise, error?: (err: any) => TPromise, progress?: ProgressCallback) => TPromise >U : U >success : (value: V) => TPromise >value : V >V : V >TPromise : TPromise >U : U >error : (err: any) => TPromise >err : any >TPromise : TPromise >U : U >progress : ProgressCallback >ProgressCallback : ProgressCallback >TPromise : TPromise >U : U }