mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
@@ -8,7 +8,7 @@ interface Qdeferred {
|
||||
resolve(value: any): any;
|
||||
reject(reason: any);
|
||||
notify(value: any);
|
||||
makeNodeResolver();
|
||||
makeNodeResolver(): Function;
|
||||
}
|
||||
|
||||
interface Qpromise {
|
||||
|
||||
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user