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
commit fa9f6610d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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