[camelcase] add linting & enable strict null checks (#18846)

* [camelcase] add linting & enable strict null checks

* [camelcase] reintroduce namespace to support import * syntax to avoid a breaking change for users
This commit is contained in:
Dimitri Benin 2017-08-11 19:20:02 +02:00 committed by Mohamed Hegazy
parent a70688ff3c
commit 81e0839d0d
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,3 @@
import camelCase = require('camelcase');
camelCase('foo-bar');

View File

@ -1,9 +1,9 @@
// Type definitions for camelcase
// Type definitions for camelcase 4.1
// Project: https://github.com/sindresorhus/camelcase
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = camelcase;
declare function camelcase(...args: string[]): string;
declare namespace camelcase { }
export = camelcase;
declare namespace camelcase {}

View File

@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
@ -19,4 +19,4 @@
"index.d.ts",
"camelcase-tests.ts"
]
}
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }