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:
parent
b8b41920e3
commit
e7025ceca1
1 changed files with 1 additions and 1 deletions
2
index.d.ts
vendored
2
index.d.ts
vendored
|
|
@ -704,7 +704,7 @@ declare namespace WAWebJS {
|
||||||
*/
|
*/
|
||||||
reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise<Message>,
|
reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise<Message>,
|
||||||
/** React to this message with an emoji*/
|
/** React to this message with an emoji*/
|
||||||
react: (reaction: string) => Promise,
|
react: (reaction: string) => Promise<void>,
|
||||||
/**
|
/**
|
||||||
* Forwards this message to another chat
|
* Forwards this message to another chat
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue