mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[get-emoji] Add types
This commit is contained in:
parent
39b514a4bb
commit
2433d05ab0
7
types/get-emoji/get-emoji-tests.ts
Normal file
7
types/get-emoji/get-emoji-tests.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import getEmoji, { emojiList } from 'get-emoji';
|
||||
|
||||
// $ExpectType string
|
||||
getEmoji('rage');
|
||||
|
||||
// $ExpectType string[]
|
||||
emojiList;
|
||||
7
types/get-emoji/index.d.ts
vendored
Normal file
7
types/get-emoji/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for get-emoji 2.0
|
||||
// Project: https://github.com/conorhastings/get-emoji
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export default function getEmoji(emojiName: string): string;
|
||||
export const emojiList: string[];
|
||||
23
types/get-emoji/tsconfig.json
Normal file
23
types/get-emoji/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",
|
||||
"get-emoji-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/get-emoji/tslint.json
Normal file
1
types/get-emoji/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user