DefinitelyTyped/types/emojione/index.d.ts
2019-10-16 10:16:40 -07:00

31 lines
1.0 KiB
TypeScript

// 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;
export let sprites: boolean;
export let imagePathPNG: string;
export let imagePathSVG: string;
export let imagePathSVGSprites: string;
export let imageType: 'png' | 'svg';
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;
export function unicodeToImage(str: string): string;
export function shortnameToUnicode(str: string): string;