Permalink
Browse files

Slight change to makeNodeResolver in q.d.ts and added a second declar…

…ation for it in jasmine to accomodate 'done' function for async funciton calls.
  • Loading branch information...
AndrewGaspar committed Mar 23, 2013
1 parent 8fd794a commit 105af2df70bc6047245373e9eb2a2603d62595e0
Showing with 3 additions and 2 deletions.
  1. +1 −1 Q/Q.d.ts
  2. +2 −1 jasmine/jasmine.d.ts
View
@@ -8,7 +8,7 @@ interface Qdeferred {
resolve(value: any): any;
reject(reason: any);
notify(value: any);
- makeNodeResolver();
+ makeNodeResolver(): Function;
}
interface Qpromise {
View
@@ -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;

0 comments on commit 105af2d

Please sign in to comment.