diff --git a/src/client.ts b/src/client.ts index 16a8a9171..bf219895c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -568,6 +568,10 @@ interface IRoomInitialSyncResponse { presence: Partial; // legacy and undocumented, api is deprecated so this won't get attention } +interface IJoinedRoomsResponse { + joined_rooms: string[]; +} + interface IJoinedMembersResponse { joined: { [userId: string]: { @@ -6674,7 +6678,7 @@ export class MatrixClient extends EventEmitter { * @return {Promise} Resolves: A list of the user's current rooms * @return {module:http-api.MatrixError} Rejects: with an error response. */ - public getJoinedRooms(): Promise { + public getJoinedRooms(): Promise { const path = utils.encodeUri("/joined_rooms", {}); return this.http.authedRequest(undefined, "GET", path); }