Store: remove all mentions of window.Store (#127077)
* Store: remove all mentions of window.Store * Apply suggestion from @BenyFilho Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com> --------- Co-authored-by: BenyFilho <168232825+BenyFilho@users.noreply.github.com>
This commit is contained in:
parent
9e42f1e0c3
commit
883d7e4eda
14 changed files with 522 additions and 754 deletions
15
index.d.ts
vendored
15
index.d.ts
vendored
|
|
@ -322,8 +322,7 @@ declare namespace WAWebJS {
|
|||
on(event: 'auth_failure', listener: (message: string) => void): this
|
||||
|
||||
/** Emitted when authentication is successful */
|
||||
on(event: 'authenticated', listener: (
|
||||
) => void): this
|
||||
on(event: 'authenticated', listener: () => void): this
|
||||
|
||||
/**
|
||||
* Emitted when the battery percentage for the attached device changes
|
||||
|
|
@ -563,7 +562,7 @@ declare namespace WAWebJS {
|
|||
evalOnNewDoc?: Function,
|
||||
/** Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/ */
|
||||
puppeteer?: puppeteer.PuppeteerNodeLaunchOptions & puppeteer.ConnectOptions
|
||||
/** Determines how to save and restore sessions. Otherwise, NoAuth will be used. */
|
||||
/** Determines how to save and restore sessions. Will use LegacySessionAuth if options.session is set. Otherwise, NoAuth will be used. */
|
||||
authStrategy?: AuthStrategy,
|
||||
/** The version of WhatsApp Web to use. Use options.webVersionCache to configure how the version is retrieved. */
|
||||
webVersion?: string,
|
||||
|
|
@ -688,16 +687,6 @@ declare namespace WAWebJS {
|
|||
extract: (options: { session: string, path: string }) => Promise<any> | any,
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a WhatsApp client session
|
||||
*/
|
||||
export interface ClientSession {
|
||||
WABrowserId: string,
|
||||
WASecretBundle: string,
|
||||
WAToken1: string,
|
||||
WAToken2: string,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue