mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
48 lines
1.0 KiB
TypeScript
48 lines
1.0 KiB
TypeScript
// Type definitions for emoji-js 3.4
|
|
// Project: https://github.com/iamcal/js-emoji
|
|
// Definitions by: Jason Di Benedetto <https://github.com/jasondibenedetto>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
export as namespace EmojiConvertor;
|
|
|
|
export class EmojiConvertor {
|
|
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;
|
|
}
|