Merge pull request #26475 from iKBAHT/emoji-regex

Added type definitions for emoji-regex
This commit is contained in:
Nathan Shively-Sanders
2018-06-20 12:49:18 -07:00
committed by GitHub
4 changed files with 35 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import emojiRegex from "emoji-regex";
emojiRegex(); // $ExpectType RegExp
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for emoji-regex 7.0
// Project: https://github.com/mathiasbynens/emoji-regex
// Definitions by: iKBAHT <https://github.com/iKBAHT>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function createRegExp(): RegExp;
export = createRegExp;
+24
View File
@@ -0,0 +1,24 @@
{
"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",
"emoji-regex-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }