Specify return type

This commit is contained in:
RMidhunSuresh 2022-09-12 23:44:51 +05:30
parent 88091622db
commit 1898c4892e
No known key found for this signature in database

View File

@ -21,7 +21,7 @@ import {RoomStatus} from "./common";
* @param roomId The id of the room to join * @param roomId The id of the room to join
* @param session A session instance * @param session A session instance
*/ */
export async function joinRoom(roomId: string, session: Session) { export async function joinRoom(roomId: string, session: Session): Promise<string> {
try { try {
const internalRoomId = await session.joinRoom(roomId); const internalRoomId = await session.joinRoom(roomId);
const roomStatusObservable = await session.observeRoomStatus(internalRoomId); const roomStatusObservable = await session.observeRoomStatus(internalRoomId);