Add strict TS checking

This commit is contained in:
Alexandru Dima 2019-12-13 15:16:19 +01:00
parent 75cb14f8f0
commit c0fb272a34
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
3 changed files with 9 additions and 8 deletions

12
src/mocha.d.ts vendored
View file

@ -5,9 +5,9 @@
declare function run(): void;
declare function suite(name: string, fn: (err?)=>void);
declare function test(name: string, fn: (done?: (err?)=>void)=>void);
declare function suiteSetup(fn: (done?: (err?)=>void)=>void);
declare function suiteTeardown(fn: (done?: (err?)=>void)=>void);
declare function setup(fn: (done?: (err?)=>void)=>void);
declare function teardown(fn: (done?: (err?)=>void)=>void);
declare function suite(name: string, fn: (err?: any)=>void): void;
declare function test(name: string, fn: (done: (err?: any)=>void)=>void): void;
declare function suiteSetup(fn: (done: (err?: any)=>void)=>void): void;
declare function suiteTeardown(fn: (done: (err?: any)=>void)=>void): void;
declare function setup(fn: (done: (err?: any)=>void)=>void): void;
declare function teardown(fn: (done: (err?: any)=>void)=>void): void;