mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
fix: typescript compilation (#1693)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
10
index.d.ts
vendored
10
index.d.ts
vendored
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import { EventEmitter } from 'events'
|
import { EventEmitter } from 'events'
|
||||||
import { RequestInit } from 'node-fetch'
|
import { RequestInit } from 'node-fetch'
|
||||||
import puppeteer from 'puppeteer'
|
import * as puppeteer from 'puppeteer'
|
||||||
|
|
||||||
declare namespace WAWebJS {
|
declare namespace WAWebJS {
|
||||||
|
|
||||||
@@ -399,10 +399,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,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user