Detect emoji support (#37285)

* adds support for detect-emoji-support

* passes lint

* adds support for detect-emoji-support
This commit is contained in:
Adam Hanna 2019-08-01 16:08:10 -07:00 committed by Jesse Trinity
parent 799d3b84cf
commit fbb0149482
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,4 @@
import { emojiSupport } from 'detect-emoji-support';
if (emojiSupport()) {
}

6
types/detect-emoji-support/index.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
// Type definitions for detect-emoji-support 0.1
// Project: https://github.com/danalloway/detect-emoji-support
// Definitions by: Adam Hanna <https://github.com/adam-hanna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function emojiSupport(): boolean;

View 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",
"detect-emoji-support-tests.ts"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }