Add more JSDocs (ref #1)

This commit is contained in:
Tulir Asokan
2017-11-27 18:22:12 +02:00
parent c0febbff0a
commit 486c7af6f7
4 changed files with 90 additions and 23 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ class MautrixTelegram {
this.portalsByRoomID = new Map()
/**
* List of management rooms.
* @type {Array<string>}
* @type {string[]}
*/
this.managementRooms = []
@@ -365,7 +365,7 @@ class MautrixTelegram {
* @param {string} roomID The ID of the room to search.
* @param {Intent} [intent] The Intent object to use when reading the room state.
* Uses {@link #botIntent} by default.
* @returns {Array} The list of MXIDs who are in the room.
* @returns {string[]} The list of MXIDs who are in the room.
*/
async getRoomMembers(roomID, intent = this.botIntent) {
const roomState = await intent.roomState(roomID)