From 6590c75c8a4d3fdd63e61a45a7ad75f5dccb1202 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Sat, 30 Jan 2021 20:36:46 -0400 Subject: [PATCH] fix (ts): include pupPage and pupBrowser properties on Client typedef --- index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index 6aaf9fe..3468d36 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,6 +10,12 @@ declare namespace WAWebJS { /** Current connection information */ 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 */ acceptInvite(inviteCode: string): Promise