From b47c71aa8d8b92e4914e77a95559119c3e7062b5 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Fri, 17 Feb 2023 09:09:39 -0600 Subject: [PATCH] refactor: clean up trystero types --- src/__mocks__/trystero.ts | 4 ++-- src/react-app-env.d.ts | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) 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) -}