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.

This commit is contained in:
Andrew Gaspar
2013-03-23 16:30:49 -05:00
parent 8fd794abff
commit 105af2df70
2 changed files with 3 additions and 2 deletions
Vendored
+1 -1
View File
@@ -8,7 +8,7 @@ interface Qdeferred {
resolve(value: any): any;
reject(reason: any);
notify(value: any);
makeNodeResolver();
makeNodeResolver(): Function;
}
interface Qpromise {
+2 -1
View File
@@ -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;