From 1e70b8d290bbc0d15ed8e0c1a772f959f20f3b56 Mon Sep 17 00:00:00 2001 From: Remco Blok Date: Tue, 19 Nov 2013 12:39:09 +0000 Subject: [PATCH] fix Q.onerror spelling mistake and missing parameter Q.onerror was spelled Q.oneerror with two e's. It was also missing the reason parameter. --- q/Q.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q/Q.d.ts b/q/Q.d.ts index a9126c007..1bd6e4d89 100644 --- a/q/Q.d.ts +++ b/q/Q.d.ts @@ -145,7 +145,7 @@ declare module Q { export function async(generatorFunction: any): (...args: any[]) => Promise; export function nextTick(callback: Function): void; - export var oneerror: () => void; + export var onerror: (reason: any) => void; export var longStackSupport: boolean; export function resolve(object: IPromise): Promise;