mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
a70688ff3c
commit
81e0839d0d
@ -1,4 +1,3 @@
|
||||
|
||||
import camelCase = require('camelcase');
|
||||
|
||||
camelCase('foo-bar');
|
||||
|
||||
6
types/camelcase/index.d.ts
vendored
6
types/camelcase/index.d.ts
vendored
@ -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 {}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@ -19,4 +19,4 @@
|
||||
"index.d.ts",
|
||||
"camelcase-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
1
types/camelcase/tslint.json
Normal file
1
types/camelcase/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user