From 38adaae37828a110a4c6b140f0bf04e2caf82cb8 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Mon, 11 Nov 2024 13:15:12 +0100 Subject: [PATCH] Fix local description sdp type --- src/lib/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/index.ts b/src/lib/index.ts index 37383ba..958d954 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,7 +1,7 @@ import nodeDataChannel from './node-datachannel'; import _DataChannelStream from './datachannel-stream'; import { WebSocketServer } from './websocket-server'; -import { Channel, DataChannelInitConfig, DescriptionType, Direction, LogLevel, RtcConfig, RTCIceConnectionState, RTCIceGatheringState, RTCPeerConnectionState, RTCSdpType, RTCSignalingState, SctpSettings, SelectedCandidateInfo } from './types'; +import { Channel, DataChannelInitConfig, DescriptionType, Direction, LogLevel, RtcConfig, RTCIceConnectionState, RTCIceGatheringState, RTCPeerConnectionState, RTCSignalingState, SctpSettings, SelectedCandidateInfo } from './types'; import { WebSocket } from './websocket'; export function preload(): void { nodeDataChannel.preload(); } @@ -115,7 +115,7 @@ export interface PeerConnection { close(): void; setLocalDescription(type?: DescriptionType): void; setRemoteDescription(sdp: string, type: DescriptionType): void; - localDescription(): { type: DescriptionType; sdp: RTCSdpType } | null; + localDescription(): { type: DescriptionType; sdp: string } | null; remoteDescription(): { type: DescriptionType; sdp: string } | null; addRemoteCandidate(candidate: string, mid: string): void; createDataChannel(label: string, config?: DataChannelInitConfig): DataChannel;