Merge branch 'main' into fix-buttons-list

This commit is contained in:
Rajeh Taher
2022-10-10 01:58:05 +03:00
committed by GitHub

10
index.d.ts vendored
View File

@@ -1,9 +1,9 @@
import { EventEmitter } from 'events' import { EventEmitter } from 'events'
import { RequestInit } from 'node-fetch' import { RequestInit } from 'node-fetch'
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' import { FormattedSectionSpec, SectionSpec } from './src/structures/List'
import * as puppeteer from 'puppeteer'
declare namespace WAWebJS { declare namespace WAWebJS {
@@ -401,10 +401,10 @@ declare namespace WAWebJS {
* Remote store interface * Remote store interface
*/ */
export interface Store { export interface Store {
sessionExists: ({session: string}) => Promise<boolean> | boolean, sessionExists: (options: { session: string }) => Promise<boolean> | boolean,
delete: ({session: string}) => Promise<any> | any, delete: (options: { session: string }) => Promise<any> | any,
save: ({session: string}) => Promise<any> | any, save: (options: { session: string }) => Promise<any> | any,
extract: ({session: string, path: string}) => Promise<any> | any, extract: (options: { session: string, path: string }) => Promise<any> | any,
} }
/** /**