feat(types): Add typings for "dotfile-regex" package

This commit is contained in:
Denis Malinochkin 2017-11-17 20:10:12 +03:00
parent 6cb103319f
commit daeef8b45f
4 changed files with 36 additions and 0 deletions

View File

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

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

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

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",
"dotfile-regex-tests.ts"
]
}

View File

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