fix(typings): Add ConnectOptions typings (#1354)

* Add ConnectOptions typings

* simplify type

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
Ahmed Fouzan
2022-03-29 08:52:51 +05:30
committed by GitHub
parent e9104b390d
commit fa9f6610d7

2
index.d.ts vendored
View File

@@ -304,7 +304,7 @@ declare namespace WAWebJS {
* @default 0 */
authTimeoutMs?: number,
/** Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/ */
puppeteer?: puppeteer.LaunchOptions & puppeteer.BrowserLaunchArgumentOptions & puppeteer.BrowserConnectOptions
puppeteer?: puppeteer.PuppeteerNodeLaunchOptions & puppeteer.ConnectOptions
/** Determines how to save and restore sessions. Will use LegacySessionAuth if options.session is set. Otherwise, NoAuth will be used. */
authStrategy?: AuthStrategy,
/** How many times should the qrcode be refreshed before giving up