mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
add back deprecated info.me
This commit is contained in:
5
index.d.ts
vendored
5
index.d.ts
vendored
@@ -260,6 +260,11 @@ declare namespace WAWebJS {
|
|||||||
|
|
||||||
/** Current connection information */
|
/** Current connection information */
|
||||||
export interface ClientInfo {
|
export interface ClientInfo {
|
||||||
|
/**
|
||||||
|
* Current user ID
|
||||||
|
* @deprecated Use .wid instead
|
||||||
|
*/
|
||||||
|
me: ContactId
|
||||||
/** Current user ID */
|
/** Current user ID */
|
||||||
wid: ContactId
|
wid: ContactId
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,6 +26,12 @@ class ClientInfo extends Base {
|
|||||||
*/
|
*/
|
||||||
this.wid = data.wid;
|
this.wid = data.wid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {object}
|
||||||
|
* @deprecated Use .wid instead
|
||||||
|
*/
|
||||||
|
this.me = data.wid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Information about the phone this client is connected to. Not available in multi-device.
|
* Information about the phone this client is connected to. Not available in multi-device.
|
||||||
* @type {object}
|
* @type {object}
|
||||||
|
|||||||
Reference in New Issue
Block a user