add typings

This commit is contained in:
Pedro Lopez
2020-11-05 02:06:13 -04:00
parent c9bc0a1c8b
commit 054ef4a84f
2 changed files with 4 additions and 2 deletions

View File

@@ -118,10 +118,10 @@ class Message extends Base {
this.location = data.type === MessageTypes.LOCATION ? new Location(data.lat, data.lng, data.loc) : undefined;
/**
* List of vcards contained in the message, if the message is a vcard or multiple vcards.
* List of vCards contained in the message.
* @type {Array<string>}
*/
this.vcards = data.type === MessageTypes.CONTACT_CARD_MULTI ? data.vcardList.map((c) => c.vcard) : data.type === MessageTypes.CONTACT_CARD ? [data.body] : [];
this.vCards = data.type === MessageTypes.CONTACT_CARD_MULTI ? data.vcardList.map((c) => c.vcard) : data.type === MessageTypes.CONTACT_CARD ? [data.body] : [];
/**
* Indicates the mentions in the message body.