refactor: use Room type

This commit is contained in:
Jeremy Kahn 2022-08-14 13:21:34 -05:00
parent 56751f4c23
commit a86e2d6592

View File

@ -1,7 +1,7 @@
import { joinRoom } from 'trystero' import { joinRoom, Room } from 'trystero'
export class PeerRoom { export class PeerRoom {
room: any private room?: Room
joinRoom(appId: string, roomId: string) { joinRoom(appId: string, roomId: string) {
this.room = joinRoom({ appId }, roomId) this.room = joinRoom({ appId }, roomId)