add back deprecated info.me
This commit is contained in:
parent
979e97ea42
commit
3c24df085a
2 changed files with 11 additions and 0 deletions
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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue