From a86e2d659254bb19c37f023b75a5440962d601e6 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Sun, 14 Aug 2022 13:21:34 -0500 Subject: [PATCH] refactor: use Room type --- src/services/PeerRoom/PeerRoom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/PeerRoom/PeerRoom.ts b/src/services/PeerRoom/PeerRoom.ts index 6840d97..e84bc02 100644 --- a/src/services/PeerRoom/PeerRoom.ts +++ b/src/services/PeerRoom/PeerRoom.ts @@ -1,7 +1,7 @@ -import { joinRoom } from 'trystero' +import { joinRoom, Room } from 'trystero' export class PeerRoom { - room: any + private room?: Room joinRoom(appId: string, roomId: string) { this.room = joinRoom({ appId }, roomId)