mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
feat(types): Add typings for "dotfile-regex" package
This commit is contained in:
parent
6cb103319f
commit
daeef8b45f
4
types/dotfile-regex/dotfile-regex-tests.ts
Normal file
4
types/dotfile-regex/dotfile-regex-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import dotfile = require('dotfile-regex');
|
||||
|
||||
// $ExpectType RegExp
|
||||
dotfile();
|
||||
8
types/dotfile-regex/index.d.ts
vendored
Normal file
8
types/dotfile-regex/index.d.ts
vendored
Normal 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;
|
||||
23
types/dotfile-regex/tsconfig.json
Normal file
23
types/dotfile-regex/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/dotfile-regex/tslint.json
Normal file
1
types/dotfile-regex/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user