mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +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 */
|
||||
export interface ClientInfo {
|
||||
/**
|
||||
* Current user ID
|
||||
* @deprecated Use .wid instead
|
||||
*/
|
||||
me: ContactId
|
||||
/** Current user ID */
|
||||
wid: ContactId
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,12 @@ class ClientInfo extends Base {
|
||||
*/
|
||||
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.
|
||||
* @type {object}
|
||||
|
||||
Reference in New Issue
Block a user