mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 03:59:16 +00:00
types
This commit is contained in:
5
index.d.ts
vendored
5
index.d.ts
vendored
@@ -3,6 +3,7 @@ import { EventEmitter } from 'events'
|
|||||||
import { RequestInit } from 'node-fetch'
|
import { RequestInit } from 'node-fetch'
|
||||||
import puppeteer from 'puppeteer'
|
import puppeteer from 'puppeteer'
|
||||||
import { ButtonSpec, FormattedButtonSpec } from './src/structures/Buttons'
|
import { ButtonSpec, FormattedButtonSpec } from './src/structures/Buttons'
|
||||||
|
import { FormattedSectionSpec, SectionSpec } from './src/structures/List'
|
||||||
|
|
||||||
declare namespace WAWebJS {
|
declare namespace WAWebJS {
|
||||||
|
|
||||||
@@ -1333,11 +1334,11 @@ declare namespace WAWebJS {
|
|||||||
export class List {
|
export class List {
|
||||||
body: string
|
body: string
|
||||||
buttonText: string
|
buttonText: string
|
||||||
sections: Array<any>
|
sections: Array<FormattedSectionSpec>
|
||||||
title?: string | null
|
title?: string | null
|
||||||
footer?: string | null
|
footer?: string | null
|
||||||
|
|
||||||
constructor(body: string, buttonText: string, sections: Array<any>, title?: string | null, footer?: string | null)
|
constructor(body: string, buttonText: string, sections: Array<SectionSpec>, title?: string | null, footer?: string | null)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Message type Buttons */
|
/** Message type Buttons */
|
||||||
|
|||||||
Reference in New Issue
Block a user