From e7025ceca1a1c637ad937b73a2dd25b22be8ab27 Mon Sep 17 00:00:00 2001 From: Maksim Date: Sun, 10 Jul 2022 09:11:34 +0300 Subject: [PATCH] Fix TS declaration for Promise of new "react" method (#1561) Without explicit delaration of void for Promise running tsc causing the error: ``` node_modules/whatsapp-web.js/index.d.ts:707:38 - error TS2314: Generic type 'Promise' requires 1 type argument(s). ``` --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index a242bf4..276496d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -704,7 +704,7 @@ declare namespace WAWebJS { */ reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise, /** React to this message with an emoji*/ - react: (reaction: string) => Promise, + react: (reaction: string) => Promise, /** * Forwards this message to another chat */