forked from Shiloh/remnantchat
refactor: clean up trystero types
This commit is contained in:
parent
7096119b76
commit
b47c71aa8d
@ -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 = {
|
||||
|
5
src/react-app-env.d.ts
vendored
5
src/react-app-env.d.ts
vendored
@ -1,6 +1 @@
|
||||
/// <reference types="react-scripts" />
|
||||
|
||||
declare module 'trystero' {
|
||||
export type RoomConfig = BaseRoomConfig &
|
||||
(BitTorrentRoomConfig | FirebaseRoomConfig | IpfsRoomConfig)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user