mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 03:29:14 +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 puppeteer from 'puppeteer'
|
||||
import { ButtonSpec, FormattedButtonSpec } from './src/structures/Buttons'
|
||||
import { FormattedSectionSpec, SectionSpec } from './src/structures/List'
|
||||
|
||||
declare namespace WAWebJS {
|
||||
|
||||
@@ -1333,11 +1334,11 @@ declare namespace WAWebJS {
|
||||
export class List {
|
||||
body: string
|
||||
buttonText: string
|
||||
sections: Array<any>
|
||||
sections: Array<FormattedSectionSpec>
|
||||
title?: 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 */
|
||||
|
||||
Reference in New Issue
Block a user