feat: add GroupChat types (#485)

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
Marcelo Carvalho
2020-12-28 20:51:56 -03:00
committed by Pedro S. Lopez
parent 32575490da
commit 5c6195738f
3 changed files with 91 additions and 2 deletions

View File

@@ -2,6 +2,14 @@
const Base = require('./Base');
/**
* ID that represents a contact
* @typedef {Object} ContactId
* @property {string} server
* @property {string} user
* @property {string} _serialized
*/
/**
* Represents a Contact on WhatsApp
* @extends {Base}
@@ -16,7 +24,7 @@ class Contact extends Base {
_patch(data) {
/**
* ID that represents the contact
* @type {object}
* @type {ContactId}
*/
this.id = data.id;