mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #32410 from diogofcunha/master
Added hashtag-regex type definitions
This commit is contained in:
commit
ea3fb44481
3
types/hashtag-regex/hashtag-regex-tests.ts
Normal file
3
types/hashtag-regex/hashtag-regex-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import hashtagRegex from "hashtag-regex";
|
||||
|
||||
hashtagRegex(); // $ExpectType RegExp
|
||||
7
types/hashtag-regex/index.d.ts
vendored
Normal file
7
types/hashtag-regex/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for hashtag-regex 2.0
|
||||
// Project: https://github.com/mathiasbynens/hashtag-regex
|
||||
// Definitions by: diogofcunha <https://github.com/diogofcunha>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function createRegExp(): RegExp;
|
||||
export = createRegExp;
|
||||
17
types/hashtag-regex/tsconfig.json
Normal file
17
types/hashtag-regex/tsconfig.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "hashtag-regex-tests.ts"]
|
||||
}
|
||||
1
types/hashtag-regex/tslint.json
Normal file
1
types/hashtag-regex/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user