Allow nodeunit definition to compile with strictNullChecks.

This commit is contained in:
Steve Ognibene
2016-10-10 13:12:18 -04:00
parent 8093f71e55
commit 64c60d078f
2 changed files with 2 additions and 2 deletions

2
nodeunit/index.d.ts vendored
View File

@@ -57,7 +57,7 @@ export interface ITestGroup {
setUp?: (callback: ICallbackFunction) => void;
/** The tearDown function is run after each test calls test.done() */
tearDown?: (callback: ICallbackFunction) => void;
[property: string]: ITestGroup | ITestBody | ((callback: ICallbackFunction) => void);
[property: string]: ITestGroup | ITestBody | ((callback: ICallbackFunction) => void) | undefined;
}
export interface ICallbackFunction {

View File

@@ -3,7 +3,7 @@
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"