@types/emoji-js
TypeScript icon, indicating that this package has built-in type declarations

3.5.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/emoji-js

Weekly Downloads

9,097

Version

3.5.2

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types