From dfc22ce760bd26dc5f673c89962f3ba48d118884 Mon Sep 17 00:00:00 2001 From: Harold Thetiot Date: Tue, 15 Mar 2022 17:44:49 +0100 Subject: [PATCH] fix: Type 'void' is not assignable to type 'string' on twemoji.parse typing. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0a170978..ee8048eb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -34,7 +34,7 @@ declare type Twemoji = { fromCodePoint(hexCodePoint: string): string; toCodePoint(utf16surrogatePairs: string): string; }; - parse(node: HTMLElement | string, options?: TwemojiOptions): void; + parse(node: HTMLElement | string, options?: TwemojiOptions): string; }; declare module 'twemoji' {