[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:
Dimitri Benin 2017-08-11 19:19:22 +02:00 committed by Mohamed Hegazy
parent 35cbdc2020
commit 32c7e27ccd
4 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,4 @@
import decamelize = require('decamelize');
decamelize('unicornRainbow');
decamelize('unicornRainbow', '-');
decamelize('unicornRainbow', '-');

View File

@ -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 {}

View File

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

View File

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