diff --git a/types/decamelize/decamelize-tests.ts b/types/decamelize/decamelize-tests.ts index af35c41943..836c67e64c 100644 --- a/types/decamelize/decamelize-tests.ts +++ b/types/decamelize/decamelize-tests.ts @@ -1,5 +1,4 @@ - import decamelize = require('decamelize'); decamelize('unicornRainbow'); -decamelize('unicornRainbow', '-'); \ No newline at end of file +decamelize('unicornRainbow', '-'); diff --git a/types/decamelize/index.d.ts b/types/decamelize/index.d.ts index 5ee1f76f35..e159cd43bb 100644 --- a/types/decamelize/index.d.ts +++ b/types/decamelize/index.d.ts @@ -1,9 +1,9 @@ -// Type definitions for decamelize +// Type definitions for decamelize 1.2 // Project: https://github.com/sindresorhus/decamelize // Definitions by: Sam Verschueren // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export = decamelize; declare function decamelize(input: string, separator?: string): string; -declare namespace decamelize { } -export = decamelize; +declare namespace decamelize {} diff --git a/types/decamelize/tsconfig.json b/types/decamelize/tsconfig.json index ac086e266d..31205a3949 100644 --- a/types/decamelize/tsconfig.json +++ b/types/decamelize/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "decamelize-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/decamelize/tslint.json b/types/decamelize/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/decamelize/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }