Fix TS declaration for Promise of new "react" method (#1561)

Without explicit delaration of void <T> for Promise running tsc causing the error:

```
node_modules/whatsapp-web.js/index.d.ts:707:38 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).
```
This commit is contained in:
Maksim
2022-07-10 09:11:34 +03:00
committed by GitHub
parent b8b41920e3
commit e7025ceca1

2
index.d.ts vendored
View File

@@ -704,7 +704,7 @@ declare namespace WAWebJS {
*/
reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise<Message>,
/** React to this message with an emoji*/
react: (reaction: string) => Promise,
react: (reaction: string) => Promise<void>,
/**
* Forwards this message to another chat
*/