From dbf9bf2158c62ade332937fe1a95b2db7c689126 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sat, 30 Oct 2021 06:32:13 +0300 Subject: [PATCH] Type file improvements (#855) * Updated Types * Updated types to include (#868) * Update index.d.ts * fix list type Co-authored-by: Pedro Lopez Co-authored-by: Pedro S. Lopez --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index d4fedc5..22081e9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -281,7 +281,7 @@ declare namespace WAWebJS { * @default 45000 */ authTimeoutMs?: number, /** Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/ */ - puppeteer?: puppeteer.LaunchOptions + puppeteer?: puppeteer.LaunchOptions & puppeteer.BrowserLaunchArgumentOptions & puppeteer.BrowserConnectOptions /** Refresh interval for qr code (how much time to wait before checking if the qr code has changed) * @default 20000 */ qrRefreshIntervalMs?: number @@ -708,7 +708,7 @@ declare namespace WAWebJS { static fromUrl: (url: string, options?: MediaFromURLOptions) => Promise } - export type MessageContent = string | MessageMedia | Location | Contact | Contact[] + export type MessageContent = string | MessageMedia | Location | Contact | Contact[] | List | Buttons /** * Represents a Contact on WhatsApp