mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[decamelize] add linting & enable strict null checks (#18847)
* [decamelize] add linting & enable strict null checks * [decamelize] reintroduce namespace to support import * syntax to avoid a breaking change for users
This commit is contained in:
parent
35cbdc2020
commit
32c7e27ccd
@ -1,5 +1,4 @@
|
||||
|
||||
import decamelize = require('decamelize');
|
||||
|
||||
decamelize('unicornRainbow');
|
||||
decamelize('unicornRainbow', '-');
|
||||
decamelize('unicornRainbow', '-');
|
||||
|
||||
6
types/decamelize/index.d.ts
vendored
6
types/decamelize/index.d.ts
vendored
@ -1,9 +1,9 @@
|
||||
// Type definitions for decamelize
|
||||
// Type definitions for decamelize 1.2
|
||||
// Project: https://github.com/sindresorhus/decamelize
|
||||
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = decamelize;
|
||||
|
||||
declare function decamelize(input: string, separator?: string): string;
|
||||
declare namespace decamelize { }
|
||||
export = decamelize;
|
||||
declare namespace decamelize {}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@ -19,4 +19,4 @@
|
||||
"index.d.ts",
|
||||
"decamelize-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
1
types/decamelize/tslint.json
Normal file
1
types/decamelize/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user