From 105af2df70bc6047245373e9eb2a2603d62595e0 Mon Sep 17 00:00:00 2001 From: Andrew Gaspar Date: Sat, 23 Mar 2013 16:30:49 -0500 Subject: [PATCH] Slight change to makeNodeResolver in q.d.ts and added a second declaration for it in jasmine to accomodate 'done' function for async funciton calls. --- Q/Q.d.ts | 2 +- jasmine/jasmine.d.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Q/Q.d.ts b/Q/Q.d.ts index f7a871ea4..45af07fd2 100644 --- a/Q/Q.d.ts +++ b/Q/Q.d.ts @@ -8,7 +8,7 @@ interface Qdeferred { resolve(value: any): any; reject(reason: any); notify(value: any); - makeNodeResolver(); + makeNodeResolver(): Function; } interface Qpromise { diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts index 56f41b48f..05e437004 100644 --- a/jasmine/jasmine.d.ts +++ b/jasmine/jasmine.d.ts @@ -7,7 +7,8 @@ declare function describe(description: string, specDefinitions: Function): void; declare function xdescribe(description: string, specDefinitions: Function): void; -declare function it(expectation: string, assertion: Function): void; +declare function it(expectation: string, assertion: () => void ): void; +declare function it(expectation: string, assertion: (done: (err?) => void) => void ): void; declare function xit(expectation: string, assertion: Function): void; declare function beforeEach(action: Function): void;