From ff2329cac03703a10ce8b3793d707131403318b4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 16 Sep 2022 14:33:20 +0200 Subject: remove redundant RTCSessionDescriptionInit type --- common/packets.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/packets.d.ts b/common/packets.d.ts index c5e9637..02108a3 100644 --- a/common/packets.d.ts +++ b/common/packets.d.ts @@ -1,7 +1,6 @@ // copy pasted from dom.lib.d.ts because it can not be referenced in the server. -type F_RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; -interface F_RTCSessionDescriptionInit { sdp?: string; type: F_RTCSdpType; } +type Sdp = string interface F_RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } export interface /* enum */ ClientboundPacket { @@ -28,8 +27,8 @@ export interface /* enum */ RelayMessage { provide?: ProvideInfo request?: { id: number } - offer?: F_RTCSessionDescriptionInit, - answer?: F_RTCSessionDescriptionInit, + offer?: Sdp, + answer?: Sdp, ice_candidate?: F_RTCIceCandidateInit, } export interface ChatMessage { text?: string, image?: string } -- cgit v1.2.3-70-g09d2