Added missing emojioneList definition (#39155)

This commit is contained in:
David Velásquez 2019-10-16 12:16:40 -05:00 committed by Andrew Branch
parent cde2fbca9b
commit b30ce51827
2 changed files with 17 additions and 0 deletions

View File

@ -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');

View File

@ -1,6 +1,7 @@
// Type definitions for emojione 2.2
// Project: https://github.com/Ranks/emojione, https://www.emojione.com
// Definitions by: Danilo Bargen <https://github.com/dbrgn>
// David Velasquez <https://github.com/sliker>
// 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;