Merge pull request #21600 from mrmlnc/dotdir_regex

[dotdir-regex]: Add typings for "dotdir-regex" package
This commit is contained in:
Nathan Shively-Sanders
2017-11-17 15:25:56 -08:00
committed by GitHub
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import dotdir = require('dotdir-regex');
// $ExpectType RegExp
dotdir();

8
types/dotdir-regex/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for dotdir-regex 1.0
// Project: https://github.com/regexhq/dotdir-regex
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function dotdirRegex(): RegExp;
export = dotdirRegex;

View File

@@ -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"
]
}

View File

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