diff --git a/types/dotdir-regex/dotdir-regex-tests.ts b/types/dotdir-regex/dotdir-regex-tests.ts new file mode 100644 index 0000000000..ff40d153f8 --- /dev/null +++ b/types/dotdir-regex/dotdir-regex-tests.ts @@ -0,0 +1,4 @@ +import dotdir = require('dotdir-regex'); + +// $ExpectType RegExp +dotdir(); diff --git a/types/dotdir-regex/index.d.ts b/types/dotdir-regex/index.d.ts new file mode 100644 index 0000000000..59b68ae322 --- /dev/null +++ b/types/dotdir-regex/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for dotdir-regex 1.0 +// Project: https://github.com/regexhq/dotdir-regex +// Definitions by: mrmlnc +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function dotdirRegex(): RegExp; + +export = dotdirRegex; diff --git a/types/dotdir-regex/tsconfig.json b/types/dotdir-regex/tsconfig.json new file mode 100644 index 0000000000..48f516abd8 --- /dev/null +++ b/types/dotdir-regex/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "dotdir-regex-tests.ts" + ] +} diff --git a/types/dotdir-regex/tslint.json b/types/dotdir-regex/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/dotdir-regex/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }