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.
This commit is contained in:
Remco Blok
2013-11-19 12:39:09 +00:00
parent 4d8c44639e
commit 1e70b8d290
Vendored
+1 -1
View File
@@ -145,7 +145,7 @@ declare module Q {
export function async<T>(generatorFunction: any): (...args: any[]) => Promise<T>;
export function nextTick(callback: Function): void;
export var oneerror: () => void;
export var onerror: (reason: any) => void;
export var longStackSupport: boolean;
export function resolve<T>(object: IPromise<T>): Promise<T>;