diff --git a/q/Q.d.ts b/q/Q.d.ts index 25411a550..5a40127d7 100644 --- a/q/Q.d.ts +++ b/q/Q.d.ts @@ -197,7 +197,11 @@ declare module Q { export function when(value: IPromise, onFulfilled: (val: T) => U, onRejected?: (reason: any) => IPromise, onProgress?: (progress: any) => any): Promise; export function when(value: IPromise, onFulfilled: (val: T) => U, onRejected?: (reason: any) => U, onProgress?: (progress: any) => any): Promise; - //export function try(method: Function, ...args: any[]): Promise; // <- This is broken currently - not sure how to fix. + /** + * Currently "impossible" (and I use the term loosely) to implement due to TypeScript limitations as it is now. + * See: https://github.com/Microsoft/TypeScript/issues/1784 for discussion on it. + */ + // export function try(method: Function, ...args: any[]): Promise; export function fbind(method: (...args: any[]) => IPromise, ...args: any[]): (...args: any[]) => Promise; export function fbind(method: (...args: any[]) => T, ...args: any[]): (...args: any[]) => Promise;