From b30ce518272ab110e90930f1df57b46832a4ec1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Vel=C3=A1squez?= Date: Wed, 16 Oct 2019 12:16:40 -0500 Subject: [PATCH] Added missing emojioneList definition (#39155) --- types/emojione/emojione-tests.ts | 8 ++++++++ types/emojione/index.d.ts | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/types/emojione/emojione-tests.ts b/types/emojione/emojione-tests.ts index ea5d04e217..16d7091ecb 100644 --- a/types/emojione/emojione-tests.ts +++ b/types/emojione/emojione-tests.ts @@ -7,6 +7,14 @@ emojione.unicodeAlt = false; emojione.ascii = true; emojione.unicodeRegexp = '123.*'; emojione.cacheBustParam = 'asdf'; +emojione.emojioneList = { + ':hi:': { + unicode: ['foobar'], + fname: 'foobar', + uc: 'foobar', + isCanonical: false + } +}; const myShort: string = emojione.toShort('hi'); const myImage1: string = emojione.toImage('hi'); const myImage2: string = emojione.shortnameToImage('hi'); diff --git a/types/emojione/index.d.ts b/types/emojione/index.d.ts index 21d4726c2f..ef0c5c6a16 100644 --- a/types/emojione/index.d.ts +++ b/types/emojione/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for emojione 2.2 // Project: https://github.com/Ranks/emojione, https://www.emojione.com // Definitions by: Danilo Bargen +// David Velasquez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace emojione; @@ -14,6 +15,14 @@ export let unicodeAlt: boolean; export let ascii: boolean; export let unicodeRegexp: string; export let cacheBustParam: string; +export let emojioneList: { + [key: string]: { + unicode: string[]; + fname: string; + uc: string; + isCanonical: boolean; + }; +}; export function toShort(str: string): string; export function toImage(str: string): string; export function shortnameToImage(str: string): string;