diff --git a/src/__mocks__/trystero.ts b/src/__mocks__/trystero.ts index 1d6339c..047a25c 100644 --- a/src/__mocks__/trystero.ts +++ b/src/__mocks__/trystero.ts @@ -1,7 +1,7 @@ -import { joinRoom as trysteroJoinRoom, RoomConfig, Room } from 'trystero' +import { joinRoom as trysteroJoinRoom, Room, BaseRoomConfig } from 'trystero' export const joinRoom: typeof trysteroJoinRoom = ( - _config: RoomConfig, + _config: BaseRoomConfig, _roomId: string ) => { const room: Room = { diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index f0d70f9..6431bc5 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -1,6 +1 @@ /// - -declare module 'trystero' { - export type RoomConfig = BaseRoomConfig & - (BitTorrentRoomConfig | FirebaseRoomConfig | IpfsRoomConfig) -}