refactor: clean up trystero types

This commit is contained in:
Jeremy Kahn 2023-02-17 09:09:39 -06:00
parent 7096119b76
commit b47c71aa8d
2 changed files with 2 additions and 7 deletions

View File

@ -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 = {

View File

@ -1,6 +1 @@
/// <reference types="react-scripts" />
declare module 'trystero' {
export type RoomConfig = BaseRoomConfig &
(BitTorrentRoomConfig | FirebaseRoomConfig | IpfsRoomConfig)
}