1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-07-01 02:19:09 +00:00

declare twemoji type and twemoji module in index.d.ts

This commit is contained in:
Harold Thetiot 2022-03-14 15:48:25 +01:00 committed by Justine De Caires
parent 34e6b4a667
commit 9110fc85c0

9
index.d.ts vendored
View File

@ -29,12 +29,15 @@ declare interface TwemojiOptions {
attributes?(): void; attributes?(): void;
} }
declare const twemoji: { declare type twemoji = {
convert: { convert: {
fromCodePoint(hexCodePoint: string): string; fromCodePoint(hexCodePoint: string): string;
toCodePoint(utf16surrogatePairs: string): string; toCodePoint(utf16surrogatePairs: string): string;
}; };
parse(node: HTMLElement | string, options?: TwemojiOptions): string; parse(node: HTMLElement | string, options?: TwemojiOptions): void;
}; };
export default twemoji; declare module "twemoji" {
const twemoji: twemoji;
export default twemoji;
}