diff --git a/mocha-cakes.d.ts b/mocha-cakes.d.ts index ff0397d..aef27f8 100644 --- a/mocha-cakes.d.ts +++ b/mocha-cakes.d.ts @@ -1,7 +1,20 @@ interface MochaCakesTestFn { - (t: string, f: Function): any; - only(t: string, f: Function): any; - skip(t: string, f: Function): any; + (description: string, testFn: Function): any; + only(description: string, testFn: Function): any; + skip(description: string, testFn: Function): any; +} + +interface MochaCakesDone { + (error?: any): any +} + +interface MochaCakesHookCallback { + (done: MochaCakesDone): void; +} + +interface MochaCakesHook { + (callback: MochaCakesHookCallback): void; + (description: string, callback: MochaCakesHookCallback): void; } declare var Feature: MochaCakesTestFn; @@ -19,3 +32,8 @@ declare var and: MochaCakesTestFn; declare var when: MochaCakesTestFn; declare var then: MochaCakesTestFn; declare var but: MochaCakesTestFn; + +declare var afterEachFeature: MochaCakesHook; +declare var beforeEachFeature: MochaCakesHook; +declare var afterEachScenario: MochaCakesHook; +declare var beforeEachScenario: MochaCakesHook;