Installation
npm install --save @types/emoji-js
Summary
This package contains type definitions for emoji-js (https://github.com/iamcal/js-emoji).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emoji-js.
index.d.ts
export as namespace EmojiConvertor;
declare namespace Emoji {
const EmojiConvertor: typeof Emoji;
}
declare class Emoji {
addAliases: (aliases: { [key: string]: string }) => void;
allow_caps: boolean;
allow_native: boolean;
avoid_ms_emoji: boolean;
colons_mode: boolean;
img_set: string;
img_sets: { [key: string]: { path: string; sheet: string; sheet_size: number; mask: number } };
include_text: boolean;
include_title: boolean;
img_suffix: string;
removeAliases: (aliases: string[]) => void;
replace_colons: (str: string) => string;
replace_emoticons: (str: string) => string;
replace_emoticons_with_colons: (str: string) => string;
replace_mode: string;
replace_unified: (str: string) => string;
text_mode: boolean;
use_css_imgs: boolean;
use_sheet: boolean;
}
export = Emoji;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Jason Di Benedetto, and Piotr Błażejewicz.