diff --git a/types/to-slug-case/index.d.ts b/types/to-slug-case/index.d.ts new file mode 100644 index 0000000000..7d2f587514 --- /dev/null +++ b/types/to-slug-case/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for to-slug-case 1.0 +// Project: https://github.com/ianstormtaylor/to-slug-case +// Definitions by: Piotr Błażejewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function toSlugCase(str: string): string; + +export = toSlugCase; diff --git a/types/to-slug-case/to-slug-case-tests.ts b/types/to-slug-case/to-slug-case-tests.ts new file mode 100644 index 0000000000..9a7391bfdf --- /dev/null +++ b/types/to-slug-case/to-slug-case-tests.ts @@ -0,0 +1,3 @@ +import toSlugCase = require('to-slug-case'); + +toSlugCase('camelCase'); // $ExpectType string diff --git a/types/to-slug-case/tsconfig.json b/types/to-slug-case/tsconfig.json new file mode 100644 index 0000000000..0213df23c4 --- /dev/null +++ b/types/to-slug-case/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "to-slug-case-tests.ts" + ] +} diff --git a/types/to-slug-case/tslint.json b/types/to-slug-case/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/to-slug-case/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }