mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for issue-regex
This commit is contained in:
parent
10739f8bd4
commit
3dae085a66
8
types/issue-regex/index.d.ts
vendored
Normal file
8
types/issue-regex/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for issue-regex 2.0
|
||||
// Project: https://github.com/sindresorhus/issue-regex#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = issueRegex;
|
||||
|
||||
declare function issueRegex(): RegExp;
|
||||
5
types/issue-regex/issue-regex-tests.ts
Normal file
5
types/issue-regex/issue-regex-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import issueRegex = require('issue-regex');
|
||||
|
||||
// $ExpectType RegExp
|
||||
issueRegex();
|
||||
'Fixes #143 and avajs/ava#1023'.match(issueRegex());
|
||||
23
types/issue-regex/tsconfig.json
Normal file
23
types/issue-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",
|
||||
"issue-regex-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/issue-regex/tslint.json
Normal file
1
types/issue-regex/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user