fix (ts): include pupPage and pupBrowser properties on Client typedef

This commit is contained in:
Pedro S. Lopez
2021-01-30 20:36:46 -04:00
parent 1bdc7335d8
commit 6590c75c8a

6
index.d.ts vendored
View File

@@ -10,6 +10,12 @@ declare namespace WAWebJS {
/** Current connection information */ /** Current connection information */
public info: ClientInfo public info: ClientInfo
/** Puppeteer page running WhatsApp Web */
pupPage?: puppeteer.Page
/** Puppeteer browser running WhatsApp Web */
pupBrowser?: puppeteer.Browser
/**Accepts an invitation to join a group */ /**Accepts an invitation to join a group */
acceptInvite(inviteCode: string): Promise<void> acceptInvite(inviteCode: string): Promise<void>