diff --git a/index.d.ts b/index.d.ts index b818f39e..08f552cf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -29,12 +29,15 @@ declare interface TwemojiOptions { attributes?(): void; } -declare const twemoji: { +declare type twemoji = { convert: { fromCodePoint(hexCodePoint: string): string; toCodePoint(utf16surrogatePairs: string): string; }; - parse(node: HTMLElement | string, options?: TwemojiOptions): string; + parse(node: HTMLElement | string, options?: TwemojiOptions): void; }; -export default twemoji; \ No newline at end of file +declare module "twemoji" { + const twemoji: twemoji; + export default twemoji; +} \ No newline at end of file