fix: add missing type definitions (#278)
* fix: @todo docs improvements * fix: add ClientInfo to Client typings * add ClientInfoPhone * fix: set getBatteryStatus as async * add ClientInfo comment Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
parent
a10b458cd5
commit
bfea74f567
2 changed files with 41 additions and 13 deletions
|
|
@ -15,6 +15,7 @@ const { ClientInfo, Message, MessageMedia, Contact, Location, GroupNotification
|
|||
/**
|
||||
* Starting point for interacting with the WhatsApp Web API
|
||||
* @extends {EventEmitter}
|
||||
* @param {object} options
|
||||
* @fires Client#qr
|
||||
* @fires Client#authenticated
|
||||
* @fires Client#auth_failure
|
||||
|
|
@ -370,7 +371,7 @@ class Client extends EventEmitter {
|
|||
|
||||
/**
|
||||
* Returns the version of WhatsApp Web currently being run
|
||||
* @returns Promise<string>
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
async getWWebVersion() {
|
||||
return await this.pupPage.evaluate(() => {
|
||||
|
|
@ -610,6 +611,7 @@ class Client extends EventEmitter {
|
|||
|
||||
/**
|
||||
* Check if a given ID is registered in whatsapp
|
||||
* @param {string} id the whatsapp user's ID
|
||||
* @returns {Promise<Boolean>}
|
||||
*/
|
||||
async isRegisteredUser(id) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue