mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 04:29:15 +00:00
Type file improvements (#855)
* Updated Types * Updated types to include (#868) * Update index.d.ts * fix list type Co-authored-by: Pedro Lopez <pedroslopez@me.com> Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
This commit is contained in:
4
index.d.ts
vendored
4
index.d.ts
vendored
@@ -281,7 +281,7 @@ declare namespace WAWebJS {
|
|||||||
* @default 45000 */
|
* @default 45000 */
|
||||||
authTimeoutMs?: number,
|
authTimeoutMs?: number,
|
||||||
/** Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/ */
|
/** 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)
|
/** Refresh interval for qr code (how much time to wait before checking if the qr code has changed)
|
||||||
* @default 20000 */
|
* @default 20000 */
|
||||||
qrRefreshIntervalMs?: number
|
qrRefreshIntervalMs?: number
|
||||||
@@ -708,7 +708,7 @@ declare namespace WAWebJS {
|
|||||||
static fromUrl: (url: string, options?: MediaFromURLOptions) => Promise<MessageMedia>
|
static fromUrl: (url: string, options?: MediaFromURLOptions) => Promise<MessageMedia>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MessageContent = string | MessageMedia | Location | Contact | Contact[]
|
export type MessageContent = string | MessageMedia | Location | Contact | Contact[] | List | Buttons
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Contact on WhatsApp
|
* Represents a Contact on WhatsApp
|
||||||
|
|||||||
Reference in New Issue
Block a user