mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added missing emojioneList definition (#39155)
This commit is contained in:
parent
cde2fbca9b
commit
b30ce51827
@ -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');
|
||||
|
||||
9
types/emojione/index.d.ts
vendored
9
types/emojione/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user