[dirname-regex] Add types

This commit is contained in:
Dimitri Benin 2018-12-25 03:15:42 +01:00
parent 42e3741a35
commit e6ea072a9f
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import dirnameRe = require('dirname-regex');
dirnameRe(); // $ExpectType RegExp

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

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

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

View File

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