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
commit e7025ceca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
*/