mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
put done interface into a module.
This commit is contained in:
Vendored
+11
-9
@@ -46,8 +46,10 @@ interface MochaSetupOptions {
|
||||
grep?: any;
|
||||
}
|
||||
|
||||
interface Done {
|
||||
(error?: Error): void;
|
||||
declare module mocha {
|
||||
interface Done {
|
||||
(error?: Error): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare var describe : {
|
||||
@@ -59,27 +61,27 @@ declare var describe : {
|
||||
|
||||
declare var it: {
|
||||
(expectation: string, assertion?: () => void): void;
|
||||
(expectation: string, assertion?: (done: Done) => void): void;
|
||||
(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
||||
only(expectation: string, assertion?: () => void): void;
|
||||
only(expectation: string, assertion?: (done: Done) => void): void;
|
||||
only(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
||||
skip(expectation: string, assertion?: () => void): void;
|
||||
skip(expectation: string, assertion?: (done: Done) => void): void;
|
||||
skip(expectation: string, assertion?: (done: mocha.Done) => void): void;
|
||||
timeout(ms: number): void;
|
||||
};
|
||||
|
||||
declare function before(action: () => void): void;
|
||||
|
||||
declare function before(action: (done: Done) => void): void;
|
||||
declare function before(action: (done: mocha.Done) => void): void;
|
||||
|
||||
declare function after(action: () => void): void;
|
||||
|
||||
declare function after(action: (done: Done) => void): void;
|
||||
declare function after(action: (done: mocha.Done) => void): void;
|
||||
|
||||
declare function beforeEach(action: () => void): void;
|
||||
|
||||
declare function beforeEach(action: (done: Done) => void): void;
|
||||
declare function beforeEach(action: (done: mocha.Done) => void): void;
|
||||
|
||||
declare function afterEach(action: () => void): void;
|
||||
|
||||
declare function afterEach(action: (done: Done) => void): void;
|
||||
declare function afterEach(action: (done: mocha.Done) => void): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user