add back deprecated info.me

This commit is contained in:
Pedro Lopez
2022-02-28 00:51:28 -04:00
parent 979e97ea42
commit 3c24df085a
2 changed files with 11 additions and 0 deletions

5
index.d.ts vendored
View File

@@ -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
/**

View File

@@ -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}