mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-02 13:57:03 +00:00
Merge pull request #32180 from BendingBender/semver-regex
[semver-regex] Add types
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// Type definitions for semver-regex 2.0
|
||||
// Project: https://github.com/sindresorhus/semver-regex#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = semverRegex;
|
||||
|
||||
declare function semverRegex(): RegExp;
|
||||
@@ -0,0 +1,3 @@
|
||||
import semverRegex = require('semver-regex');
|
||||
|
||||
semverRegex(); // $ExpectType RegExp
|
||||
@@ -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",
|
||||
"semver-regex-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user