diff --git a/node/src/ActiveSpeakerObserver.ts b/node/src/ActiveSpeakerObserver.ts index a78d54ed0c..47ee299fd8 100644 --- a/node/src/ActiveSpeakerObserver.ts +++ b/node/src/ActiveSpeakerObserver.ts @@ -1,15 +1,15 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { ActiveSpeakerObserver, ActiveSpeakerObserverDominantSpeaker, ActiveSpeakerObserverEvents, ActiveSpeakerObserverObserver, ActiveSpeakerObserverObserverEvents, } from './ActiveSpeakerObserverTypes'; -import { RtpObserver } from './RtpObserverTypes'; +import type { RtpObserver } from './RtpObserverTypes'; import { RtpObserverImpl, RtpObserverConstructorOptions } from './RtpObserver'; -import { AppData } from './types'; +import type { AppData } from './types'; import { Event, Notification } from './fbs/notification'; import * as FbsActiveSpeakerObserver from './fbs/active-speaker-observer'; diff --git a/node/src/ActiveSpeakerObserverTypes.ts b/node/src/ActiveSpeakerObserverTypes.ts index cd6822053a..18ae847822 100644 --- a/node/src/ActiveSpeakerObserverTypes.ts +++ b/node/src/ActiveSpeakerObserverTypes.ts @@ -1,11 +1,11 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { RtpObserver, RtpObserverEvents, RtpObserverObserverEvents, } from './RtpObserverTypes'; -import { Producer } from './ProducerTypes'; -import { AppData } from './types'; +import type { Producer } from './ProducerTypes'; +import type { AppData } from './types'; export type ActiveSpeakerObserverOptions< ActiveSpeakerObserverAppData extends AppData = AppData, diff --git a/node/src/AudioLevelObserver.ts b/node/src/AudioLevelObserver.ts index accf6caf27..46b4d41f76 100644 --- a/node/src/AudioLevelObserver.ts +++ b/node/src/AudioLevelObserver.ts @@ -1,16 +1,16 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { AudioLevelObserver, AudioLevelObserverVolume, AudioLevelObserverEvents, AudioLevelObserverObserver, AudioLevelObserverObserverEvents, } from './AudioLevelObserverTypes'; -import { RtpObserver } from './RtpObserverTypes'; +import type { RtpObserver } from './RtpObserverTypes'; import { RtpObserverImpl, RtpObserverConstructorOptions } from './RtpObserver'; -import { Producer } from './ProducerTypes'; -import { AppData } from './types'; +import type { Producer } from './ProducerTypes'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Event, Notification } from './fbs/notification'; import * as FbsAudioLevelObserver from './fbs/audio-level-observer'; diff --git a/node/src/AudioLevelObserverTypes.ts b/node/src/AudioLevelObserverTypes.ts index ddff9fb985..a318db3609 100644 --- a/node/src/AudioLevelObserverTypes.ts +++ b/node/src/AudioLevelObserverTypes.ts @@ -1,11 +1,11 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { RtpObserver, RtpObserverEvents, RtpObserverObserverEvents, } from './RtpObserverTypes'; -import { Producer } from './ProducerTypes'; -import { AppData } from './types'; +import type { Producer } from './ProducerTypes'; +import type { AppData } from './types'; export type AudioLevelObserverOptions< AudioLevelObserverAppData extends AppData = AppData, diff --git a/node/src/Consumer.ts b/node/src/Consumer.ts index 020fa92a82..02f331ad9b 100644 --- a/node/src/Consumer.ts +++ b/node/src/Consumer.ts @@ -1,6 +1,6 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { Consumer, ConsumerType, ConsumerScore, @@ -23,15 +23,15 @@ import { ConsumerObserverEvents, } from './ConsumerTypes'; import { Channel } from './Channel'; -import { TransportInternal } from './Transport'; -import { ProducerStat } from './ProducerTypes'; -import { MediaKind, RtpParameters } from './rtpParametersTypes'; +import type { TransportInternal } from './Transport'; +import type { ProducerStat } from './ProducerTypes'; +import type { MediaKind, RtpParameters } from './rtpParametersTypes'; import { parseRtpEncodingParameters, parseRtpParameters, } from './rtpParametersFbsUtils'; import { parseRtpStreamStats } from './RtpStream'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Event, Notification } from './fbs/notification'; import { TraceDirection as FbsTraceDirection } from './fbs/common'; diff --git a/node/src/ConsumerTypes.ts b/node/src/ConsumerTypes.ts index 103eeca565..94c21db96c 100644 --- a/node/src/ConsumerTypes.ts +++ b/node/src/ConsumerTypes.ts @@ -1,13 +1,13 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { ProducerStat } from './ProducerTypes'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { ProducerStat } from './ProducerTypes'; +import type { MediaKind, RtpCapabilities, RtpEncodingParameters, RtpParameters, } from './rtpParametersTypes'; -import { RtpStreamSendStats } from './RtpStream'; -import { AppData } from './types'; +import type { RtpStreamSendStats } from './RtpStream'; +import type { AppData } from './types'; export type ConsumerOptions = { /** diff --git a/node/src/DataConsumer.ts b/node/src/DataConsumer.ts index 1a925c57b4..95feca2a43 100644 --- a/node/src/DataConsumer.ts +++ b/node/src/DataConsumer.ts @@ -1,6 +1,6 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { DataConsumer, DataConsumerType, DataConsumerDump, @@ -10,10 +10,10 @@ import { DataConsumerObserverEvents, } from './DataConsumerTypes'; import { Channel } from './Channel'; -import { TransportInternal } from './Transport'; -import { SctpStreamParameters } from './sctpParametersTypes'; +import type { TransportInternal } from './Transport'; +import type { SctpStreamParameters } from './sctpParametersTypes'; import { parseSctpStreamParameters } from './sctpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Event, Notification } from './fbs/notification'; import * as FbsTransport from './fbs/transport'; diff --git a/node/src/DataConsumerTypes.ts b/node/src/DataConsumerTypes.ts index 1234873c91..5f0d06815c 100644 --- a/node/src/DataConsumerTypes.ts +++ b/node/src/DataConsumerTypes.ts @@ -1,6 +1,6 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { SctpStreamParameters } from './sctpParametersTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { SctpStreamParameters } from './sctpParametersTypes'; +import type { AppData } from './types'; export type DataConsumerOptions = { diff --git a/node/src/DataProducer.ts b/node/src/DataProducer.ts index 2951d9e2a8..d64a53b05e 100644 --- a/node/src/DataProducer.ts +++ b/node/src/DataProducer.ts @@ -1,6 +1,6 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { DataProducer, DataProducerType, DataProducerDump, @@ -10,10 +10,10 @@ import { DataProducerObserverEvents, } from './DataProducerTypes'; import { Channel } from './Channel'; -import { TransportInternal } from './Transport'; -import { SctpStreamParameters } from './sctpParametersTypes'; +import type { TransportInternal } from './Transport'; +import type { SctpStreamParameters } from './sctpParametersTypes'; import { parseSctpStreamParameters } from './sctpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as FbsTransport from './fbs/transport'; import * as FbsNotification from './fbs/notification'; import * as FbsRequest from './fbs/request'; diff --git a/node/src/DataProducerTypes.ts b/node/src/DataProducerTypes.ts index 1690ecbc2d..efb64d35bf 100644 --- a/node/src/DataProducerTypes.ts +++ b/node/src/DataProducerTypes.ts @@ -1,6 +1,6 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { SctpStreamParameters } from './sctpParametersTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { SctpStreamParameters } from './sctpParametersTypes'; +import type { AppData } from './types'; export type DataProducerOptions = { diff --git a/node/src/DirectTransport.ts b/node/src/DirectTransport.ts index 808523ebc4..69dd3b3bb4 100644 --- a/node/src/DirectTransport.ts +++ b/node/src/DirectTransport.ts @@ -1,6 +1,6 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { DirectTransport, DirectTransportDump, DirectTransportStat, @@ -8,7 +8,7 @@ import { DirectTransportObserver, DirectTransportObserverEvents, } from './DirectTransportTypes'; -import { Transport, BaseTransportDump } from './TransportTypes'; +import type { Transport, BaseTransportDump } from './TransportTypes'; import { TransportImpl, TransportConstructorOptions, @@ -16,8 +16,8 @@ import { parseBaseTransportStats, parseTransportTraceEventData, } from './Transport'; -import { SctpParameters } from './sctpParametersTypes'; -import { AppData } from './types'; +import type { SctpParameters } from './sctpParametersTypes'; +import type { AppData } from './types'; import { UnsupportedError } from './errors'; import { Event, Notification } from './fbs/notification'; import * as FbsDirectTransport from './fbs/direct-transport'; diff --git a/node/src/DirectTransportTypes.ts b/node/src/DirectTransportTypes.ts index 97d7c63b90..fd9c23fc91 100644 --- a/node/src/DirectTransportTypes.ts +++ b/node/src/DirectTransportTypes.ts @@ -1,12 +1,12 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Transport, BaseTransportDump, BaseTransportStats, TransportEvents, TransportObserverEvents, } from './TransportTypes'; -import { AppData } from './types'; +import type { AppData } from './types'; export type DirectTransportOptions< DirectTransportAppData extends AppData = AppData, diff --git a/node/src/PipeTransport.ts b/node/src/PipeTransport.ts index 614010266c..76af3acb1a 100644 --- a/node/src/PipeTransport.ts +++ b/node/src/PipeTransport.ts @@ -2,7 +2,7 @@ import * as flatbuffers from 'flatbuffers'; import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; import * as ortc from './ortc'; -import { +import type { PipeTransport, PipeConsumerOptions, PipeTransportDump, @@ -11,7 +11,7 @@ import { PipeTransportObserver, PipeTransportObserverEvents, } from './PipeTransportTypes'; -import { Transport, TransportTuple, SctpState } from './TransportTypes'; +import type { Transport, TransportTuple, SctpState } from './TransportTypes'; import { TransportImpl, TransportConstructorOptions, @@ -21,21 +21,21 @@ import { parseTuple, parseTransportTraceEventData, } from './Transport'; -import { Producer } from './ProducerTypes'; -import { Consumer, ConsumerType } from './ConsumerTypes'; +import type { Producer } from './ProducerTypes'; +import type { Consumer, ConsumerType } from './ConsumerTypes'; import { ConsumerImpl } from './Consumer'; -import { RtpParameters } from './rtpParametersTypes'; +import type { RtpParameters } from './rtpParametersTypes'; import { serializeRtpEncodingParameters, serializeRtpParameters, } from './rtpParametersFbsUtils'; -import { SctpParameters } from './sctpParametersTypes'; -import { SrtpParameters } from './srtpParametersTypes'; +import type { SctpParameters } from './sctpParametersTypes'; +import type { SrtpParameters } from './srtpParametersTypes'; import { parseSrtpParameters, serializeSrtpParameters, } from './srtpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import { generateUUIDv4 } from './utils'; import { MediaKind as FbsMediaKind } from './fbs/rtp-parameters/media-kind'; import * as FbsRtpParameters from './fbs/rtp-parameters'; diff --git a/node/src/PipeTransportTypes.ts b/node/src/PipeTransportTypes.ts index c0e18e2024..705a4a7c04 100644 --- a/node/src/PipeTransportTypes.ts +++ b/node/src/PipeTransportTypes.ts @@ -1,5 +1,5 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Transport, TransportListenInfo, TransportListenIp, @@ -10,10 +10,10 @@ import { TransportEvents, TransportObserverEvents, } from './TransportTypes'; -import { Consumer } from './ConsumerTypes'; -import { SrtpParameters } from './srtpParametersTypes'; -import { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; -import { Either, AppData } from './types'; +import type { Consumer } from './ConsumerTypes'; +import type { SrtpParameters } from './srtpParametersTypes'; +import type { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; +import type { Either, AppData } from './types'; export type PipeTransportOptions< PipeTransportAppData extends AppData = AppData, diff --git a/node/src/PlainTransport.ts b/node/src/PlainTransport.ts index 6c57ff4947..e1e9138838 100644 --- a/node/src/PlainTransport.ts +++ b/node/src/PlainTransport.ts @@ -1,7 +1,7 @@ import * as flatbuffers from 'flatbuffers'; import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { PlainTransport, PlainTransportDump, PlainTransportStat, @@ -9,7 +9,7 @@ import { PlainTransportObserver, PlainTransportObserverEvents, } from './PlainTransportTypes'; -import { Transport, TransportTuple, SctpState } from './TransportTypes'; +import type { Transport, TransportTuple, SctpState } from './TransportTypes'; import { TransportImpl, TransportConstructorOptions, @@ -19,13 +19,13 @@ import { parseBaseTransportStats, parseTransportTraceEventData, } from './Transport'; -import { SctpParameters } from './sctpParametersTypes'; -import { SrtpParameters } from './srtpParametersTypes'; +import type { SctpParameters } from './sctpParametersTypes'; +import type { SrtpParameters } from './srtpParametersTypes'; import { parseSrtpParameters, serializeSrtpParameters, } from './srtpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import { Event, Notification } from './fbs/notification'; import * as FbsRequest from './fbs/request'; import * as FbsTransport from './fbs/transport'; diff --git a/node/src/PlainTransportTypes.ts b/node/src/PlainTransportTypes.ts index 04ef6aa76c..ab65d2b6b5 100644 --- a/node/src/PlainTransportTypes.ts +++ b/node/src/PlainTransportTypes.ts @@ -1,5 +1,5 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Transport, TransportListenInfo, TransportListenIp, @@ -10,9 +10,9 @@ import { TransportEvents, TransportObserverEvents, } from './TransportTypes'; -import { SrtpParameters, SrtpCryptoSuite } from './srtpParametersTypes'; -import { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; -import { Either, AppData } from './types'; +import type { SrtpParameters, SrtpCryptoSuite } from './srtpParametersTypes'; +import type { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; +import type { Either, AppData } from './types'; export type PlainTransportOptions< PlainTransportAppData extends AppData = AppData, diff --git a/node/src/Producer.ts b/node/src/Producer.ts index 07b1bba875..f7e5770057 100644 --- a/node/src/Producer.ts +++ b/node/src/Producer.ts @@ -1,6 +1,6 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { Producer, ProducerType, ProducerScore, @@ -14,11 +14,11 @@ import { ProducerObserverEvents, } from './ProducerTypes'; import { Channel } from './Channel'; -import { TransportInternal } from './Transport'; -import { MediaKind, RtpParameters } from './rtpParametersTypes'; +import type { TransportInternal } from './Transport'; +import type { MediaKind, RtpParameters } from './rtpParametersTypes'; import { parseRtpParameters } from './rtpParametersFbsUtils'; import { parseRtpStreamRecvStats } from './RtpStream'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Event, Notification } from './fbs/notification'; import { TraceDirection as FbsTraceDirection } from './fbs/common'; diff --git a/node/src/ProducerTypes.ts b/node/src/ProducerTypes.ts index 9f74632a7a..8a49d3e14f 100644 --- a/node/src/ProducerTypes.ts +++ b/node/src/ProducerTypes.ts @@ -1,7 +1,7 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { MediaKind, RtpParameters } from './rtpParametersTypes'; -import { RtpStreamRecvStats } from './RtpStream'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { MediaKind, RtpParameters } from './rtpParametersTypes'; +import type { RtpStreamRecvStats } from './RtpStream'; +import type { AppData } from './types'; export type ProducerOptions = { /** diff --git a/node/src/Router.ts b/node/src/Router.ts index 988bee6e6b..d80244a0fb 100644 --- a/node/src/Router.ts +++ b/node/src/Router.ts @@ -2,8 +2,8 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; import * as ortc from './ortc'; import { InvalidStateError } from './errors'; -import { Channel } from './Channel'; -import { +import type { Channel } from './Channel'; +import type { Router, PipeToRouterOptions, PipeToRouterResult, @@ -13,13 +13,13 @@ import { RouterObserver, RouterObserverEvents, } from './RouterTypes'; -import { +import type { Transport, TransportListenIp, TransportProtocol, } from './TransportTypes'; import { portRangeToFbs, socketFlagsToFbs } from './Transport'; -import { +import type { WebRtcTransport, WebRtcTransportOptions, } from './WebRtcTransportTypes'; @@ -27,17 +27,20 @@ import { WebRtcTransportImpl, parseWebRtcTransportDumpResponse, } from './WebRtcTransport'; -import { PlainTransport, PlainTransportOptions } from './PlainTransportTypes'; +import type { + PlainTransport, + PlainTransportOptions, +} from './PlainTransportTypes'; import { PlainTransportImpl, parsePlainTransportDumpResponse, } from './PlainTransport'; -import { PipeTransport, PipeTransportOptions } from './PipeTransportTypes'; +import type { PipeTransport, PipeTransportOptions } from './PipeTransportTypes'; import { PipeTransportImpl, parsePipeTransportDumpResponse, } from './PipeTransport'; -import { +import type { DirectTransport, DirectTransportOptions, } from './DirectTransportTypes'; @@ -45,24 +48,24 @@ import { DirectTransportImpl, parseDirectTransportDumpResponse, } from './DirectTransport'; -import { Producer } from './ProducerTypes'; -import { Consumer } from './ConsumerTypes'; -import { DataProducer } from './DataProducerTypes'; -import { DataConsumer } from './DataConsumerTypes'; -import { RtpObserver } from './RtpObserverTypes'; -import { +import type { Producer } from './ProducerTypes'; +import type { Consumer } from './ConsumerTypes'; +import type { DataProducer } from './DataProducerTypes'; +import type { DataConsumer } from './DataConsumerTypes'; +import type { RtpObserver } from './RtpObserverTypes'; +import type { ActiveSpeakerObserver, ActiveSpeakerObserverOptions, } from './ActiveSpeakerObserverTypes'; import { ActiveSpeakerObserverImpl } from './ActiveSpeakerObserver'; -import { +import type { AudioLevelObserver, AudioLevelObserverOptions, } from './AudioLevelObserverTypes'; import { AudioLevelObserverImpl } from './AudioLevelObserver'; -import { RtpCapabilities } from './rtpParametersTypes'; +import type { RtpCapabilities } from './rtpParametersTypes'; import { cryptoSuiteToFbs } from './srtpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as utils from './utils'; import * as fbsUtils from './fbsUtils'; import * as FbsActiveSpeakerObserver from './fbs/active-speaker-observer'; diff --git a/node/src/RouterTypes.ts b/node/src/RouterTypes.ts index c435d60041..5a7db9be1e 100644 --- a/node/src/RouterTypes.ts +++ b/node/src/RouterTypes.ts @@ -1,35 +1,38 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Transport, TransportListenInfo, TransportListenIp, } from './TransportTypes'; -import { +import type { WebRtcTransport, WebRtcTransportOptions, } from './WebRtcTransportTypes'; -import { PlainTransport, PlainTransportOptions } from './PlainTransportTypes'; -import { PipeTransport, PipeTransportOptions } from './PipeTransportTypes'; -import { +import type { + PlainTransport, + PlainTransportOptions, +} from './PlainTransportTypes'; +import type { PipeTransport, PipeTransportOptions } from './PipeTransportTypes'; +import type { DirectTransport, DirectTransportOptions, } from './DirectTransportTypes'; -import { Producer } from './ProducerTypes'; -import { Consumer } from './ConsumerTypes'; -import { DataProducer } from './DataProducerTypes'; -import { DataConsumer } from './DataConsumerTypes'; -import { RtpObserver } from './RtpObserverTypes'; -import { +import type { Producer } from './ProducerTypes'; +import type { Consumer } from './ConsumerTypes'; +import type { DataProducer } from './DataProducerTypes'; +import type { DataConsumer } from './DataConsumerTypes'; +import type { RtpObserver } from './RtpObserverTypes'; +import type { ActiveSpeakerObserver, ActiveSpeakerObserverOptions, } from './ActiveSpeakerObserverTypes'; -import { +import type { AudioLevelObserver, AudioLevelObserverOptions, } from './AudioLevelObserverTypes'; -import { RtpCapabilities, RtpCodecCapability } from './rtpParametersTypes'; -import { NumSctpStreams } from './sctpParametersTypes'; -import { Either, AppData } from './types'; +import type { RtpCapabilities, RtpCodecCapability } from './rtpParametersTypes'; +import type { NumSctpStreams } from './sctpParametersTypes'; +import type { Either, AppData } from './types'; export type RouterOptions = { /** diff --git a/node/src/RtpObserver.ts b/node/src/RtpObserver.ts index 9b04126899..ec42cedc6d 100644 --- a/node/src/RtpObserver.ts +++ b/node/src/RtpObserver.ts @@ -1,10 +1,13 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { RtpObserverEvents, RtpObserverObserver } from './RtpObserverTypes'; -import { Channel } from './Channel'; -import { RouterInternal } from './Router'; -import { Producer } from './ProducerTypes'; -import { AppData } from './types'; +import type { + RtpObserverEvents, + RtpObserverObserver, +} from './RtpObserverTypes'; +import type { Channel } from './Channel'; +import type { RouterInternal } from './Router'; +import type { Producer } from './ProducerTypes'; +import type { AppData } from './types'; import * as FbsRequest from './fbs/request'; import * as FbsRouter from './fbs/router'; import * as FbsRtpObserver from './fbs/rtp-observer'; diff --git a/node/src/RtpObserverTypes.ts b/node/src/RtpObserverTypes.ts index 15a6bcdad5..48d064e6ef 100644 --- a/node/src/RtpObserverTypes.ts +++ b/node/src/RtpObserverTypes.ts @@ -1,6 +1,6 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { Producer } from './ProducerTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Producer } from './ProducerTypes'; +import type { AppData } from './types'; export type RtpObserverEvents = { routerclose: []; diff --git a/node/src/Transport.ts b/node/src/Transport.ts index c90bf8b676..64a79b5e65 100644 --- a/node/src/Transport.ts +++ b/node/src/Transport.ts @@ -2,7 +2,7 @@ import * as flatbuffers from 'flatbuffers'; import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; import * as ortc from './ortc'; -import { +import type { Transport, TransportProtocol, TransportPortRange, @@ -19,26 +19,26 @@ import { TransportEvents, TransportObserver, } from './TransportTypes'; -import { Channel } from './Channel'; -import { RouterInternal } from './Router'; -import { WebRtcTransportData } from './WebRtcTransport'; -import { PlainTransportData } from './PlainTransport'; -import { PipeTransportData } from './PipeTransport'; -import { DirectTransportData } from './DirectTransport'; -import { Producer, ProducerOptions } from './ProducerTypes'; +import type { Channel } from './Channel'; +import type { RouterInternal } from './Router'; +import type { WebRtcTransportData } from './WebRtcTransport'; +import type { PlainTransportData } from './PlainTransport'; +import type { PipeTransportData } from './PipeTransport'; +import type { DirectTransportData } from './DirectTransport'; +import type { Producer, ProducerOptions } from './ProducerTypes'; import { ProducerImpl, producerTypeFromFbs, producerTypeToFbs, } from './Producer'; -import { +import type { Consumer, ConsumerOptions, ConsumerType, ConsumerLayers, } from './ConsumerTypes'; import { ConsumerImpl } from './Consumer'; -import { +import type { DataProducer, DataProducerOptions, DataProducerType, @@ -48,7 +48,7 @@ import { dataProducerTypeToFbs, parseDataProducerDumpResponse, } from './DataProducer'; -import { +import type { DataConsumer, DataConsumerOptions, DataConsumerType, @@ -58,7 +58,7 @@ import { dataConsumerTypeToFbs, parseDataConsumerDumpResponse, } from './DataConsumer'; -import { +import type { MediaKind, RtpCapabilities, RtpParameters, @@ -67,12 +67,15 @@ import { serializeRtpEncodingParameters, serializeRtpParameters, } from './rtpParametersFbsUtils'; -import { SctpParameters, SctpStreamParameters } from './sctpParametersTypes'; +import type { + SctpParameters, + SctpStreamParameters, +} from './sctpParametersTypes'; import { parseSctpParametersDump, serializeSctpStreamParameters, } from './sctpParametersFbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import * as utils from './utils'; import * as fbsUtils from './fbsUtils'; import { TraceDirection as FbsTraceDirection } from './fbs/common'; diff --git a/node/src/TransportTypes.ts b/node/src/TransportTypes.ts index 65a3c12200..ea7d4d7214 100644 --- a/node/src/TransportTypes.ts +++ b/node/src/TransportTypes.ts @@ -1,10 +1,10 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { Producer, ProducerOptions } from './ProducerTypes'; -import { Consumer, ConsumerOptions } from './ConsumerTypes'; -import { DataProducer, DataProducerOptions } from './DataProducerTypes'; -import { DataConsumer, DataConsumerOptions } from './DataConsumerTypes'; -import { SctpParameters } from './sctpParametersTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Producer, ProducerOptions } from './ProducerTypes'; +import type { Consumer, ConsumerOptions } from './ConsumerTypes'; +import type { DataProducer, DataProducerOptions } from './DataProducerTypes'; +import type { DataConsumer, DataConsumerOptions } from './DataConsumerTypes'; +import type { SctpParameters } from './sctpParametersTypes'; +import type { AppData } from './types'; export type TransportListenInfo = { /** diff --git a/node/src/WebRtcServer.ts b/node/src/WebRtcServer.ts index d389862508..329009f110 100644 --- a/node/src/WebRtcServer.ts +++ b/node/src/WebRtcServer.ts @@ -1,7 +1,7 @@ import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { Channel } from './Channel'; -import { +import type { Channel } from './Channel'; +import type { WebRtcServer, IpPort, IceUserNameFragment, @@ -11,8 +11,8 @@ import { WebRtcServerObserver, WebRtcServerObserverEvents, } from './WebRtcServerTypes'; -import { WebRtcTransport } from './WebRtcTransportTypes'; -import { AppData } from './types'; +import type { WebRtcTransport } from './WebRtcTransportTypes'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Body as RequestBody, Method } from './fbs/request'; import * as FbsWorker from './fbs/worker'; diff --git a/node/src/WebRtcServerTypes.ts b/node/src/WebRtcServerTypes.ts index 122c79c404..936e4af7cd 100644 --- a/node/src/WebRtcServerTypes.ts +++ b/node/src/WebRtcServerTypes.ts @@ -1,7 +1,7 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { TransportListenInfo } from './TransportTypes'; -import { WebRtcTransport } from './WebRtcTransportTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { TransportListenInfo } from './TransportTypes'; +import type { WebRtcTransport } from './WebRtcTransportTypes'; +import type { AppData } from './types'; export type WebRtcServerOptions = { diff --git a/node/src/WebRtcTransport.ts b/node/src/WebRtcTransport.ts index 68acd22340..f5cc4caf9d 100644 --- a/node/src/WebRtcTransport.ts +++ b/node/src/WebRtcTransport.ts @@ -1,7 +1,7 @@ import * as flatbuffers from 'flatbuffers'; import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { WebRtcTransport, IceParameters, IceCandidate, @@ -20,7 +20,7 @@ import { WebRtcTransportObserver, WebRtcTransportObserverEvents, } from './WebRtcTransportTypes'; -import { Transport, TransportTuple, SctpState } from './TransportTypes'; +import type { Transport, TransportTuple, SctpState } from './TransportTypes'; import { TransportImpl, TransportConstructorOptions, @@ -31,8 +31,8 @@ import { parseTransportTraceEventData, parseTuple, } from './Transport'; -import { SctpParameters } from './sctpParametersTypes'; -import { AppData } from './types'; +import type { SctpParameters } from './sctpParametersTypes'; +import type { AppData } from './types'; import * as fbsUtils from './fbsUtils'; import { Event, Notification } from './fbs/notification'; import * as FbsRequest from './fbs/request'; diff --git a/node/src/WebRtcTransportTypes.ts b/node/src/WebRtcTransportTypes.ts index 37fda80619..382af7fb24 100644 --- a/node/src/WebRtcTransportTypes.ts +++ b/node/src/WebRtcTransportTypes.ts @@ -1,5 +1,5 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { Transport, TransportListenInfo, TransportListenIp, @@ -11,9 +11,9 @@ import { TransportEvents, TransportObserverEvents, } from './TransportTypes'; -import { WebRtcServer } from './WebRtcServerTypes'; -import { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; -import { Either, AppData } from './types'; +import type { WebRtcServer } from './WebRtcServerTypes'; +import type { SctpParameters, NumSctpStreams } from './sctpParametersTypes'; +import type { Either, AppData } from './types'; export type WebRtcTransportOptions< WebRtcTransportAppData extends AppData = AppData, diff --git a/node/src/Worker.ts b/node/src/Worker.ts index e6dfedd4ea..d144c8815f 100644 --- a/node/src/Worker.ts +++ b/node/src/Worker.ts @@ -5,7 +5,7 @@ import { version } from './'; import { Logger } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; import * as ortc from './ortc'; -import { +import type { Worker, WorkerSettings, WorkerUpdateableSettings, @@ -16,15 +16,15 @@ import { WorkerObserverEvents, } from './WorkerTypes'; import { Channel } from './Channel'; -import { WebRtcServer, WebRtcServerOptions } from './WebRtcServerTypes'; +import type { WebRtcServer, WebRtcServerOptions } from './WebRtcServerTypes'; import { WebRtcServerImpl } from './WebRtcServer'; -import { Router, RouterOptions } from './RouterTypes'; +import type { Router, RouterOptions } from './RouterTypes'; import { RouterImpl } from './Router'; import { portRangeToFbs, socketFlagsToFbs } from './Transport'; -import { RtpCodecCapability } from './rtpParametersTypes'; +import type { RtpCodecCapability } from './rtpParametersTypes'; import * as utils from './utils'; import * as fbsUtils from './fbsUtils'; -import { AppData } from './types'; +import type { AppData } from './types'; import { Event } from './fbs/notification'; import * as FbsRequest from './fbs/request'; import * as FbsWorker from './fbs/worker'; diff --git a/node/src/WorkerTypes.ts b/node/src/WorkerTypes.ts index 15e7a32b34..337b0c4ea8 100644 --- a/node/src/WorkerTypes.ts +++ b/node/src/WorkerTypes.ts @@ -1,7 +1,7 @@ -import { EnhancedEventEmitter } from './enhancedEvents'; -import { WebRtcServer, WebRtcServerOptions } from './WebRtcServerTypes'; -import { Router, RouterOptions } from './RouterTypes'; -import { AppData } from './types'; +import type { EnhancedEventEmitter } from './enhancedEvents'; +import type { WebRtcServer, WebRtcServerOptions } from './WebRtcServerTypes'; +import type { Router, RouterOptions } from './RouterTypes'; +import type { AppData } from './types'; export type WorkerLogLevel = 'debug' | 'warn' | 'error' | 'none'; diff --git a/node/src/fbsUtils.ts b/node/src/fbsUtils.ts index ba3a369fe7..56e55c73c1 100644 --- a/node/src/fbsUtils.ts +++ b/node/src/fbsUtils.ts @@ -1,4 +1,4 @@ -import { Type as FbsRtpParametersType } from './fbs/rtp-parameters'; +import type { Type as FbsRtpParametersType } from './fbs/rtp-parameters'; /** * Parse flatbuffers vector into an array of the given T. diff --git a/node/src/index.ts b/node/src/index.ts index 5169c0bbef..3a82941f34 100644 --- a/node/src/index.ts +++ b/node/src/index.ts @@ -1,11 +1,11 @@ import { Logger, LoggerEmitter } from './Logger'; import { EnhancedEventEmitter } from './enhancedEvents'; -import { Worker, WorkerSettings } from './WorkerTypes'; +import type { Worker, WorkerSettings } from './WorkerTypes'; import { WorkerImpl, workerBin } from './Worker'; import * as utils from './utils'; import { supportedRtpCapabilities } from './supportedRtpCapabilities'; -import { RtpCapabilities } from './rtpParametersTypes'; -import * as types from './types'; +import type { RtpCapabilities } from './rtpParametersTypes'; +import type * as types from './types'; /** * Expose all types. diff --git a/node/src/ortc.ts b/node/src/ortc.ts index cc3770bd4f..1a03faa30f 100644 --- a/node/src/ortc.ts +++ b/node/src/ortc.ts @@ -2,7 +2,7 @@ import * as h264 from 'h264-profile-level-id'; import * as flatbuffers from 'flatbuffers'; import { supportedRtpCapabilities } from './supportedRtpCapabilities'; import { parse as parseScalabilityMode } from './scalabilityModes'; -import { +import type { RtpCapabilities, MediaKind, RtpCodecCapability, @@ -14,7 +14,7 @@ import { RtpHeaderExtensionParameters, RtcpParameters, } from './rtpParametersTypes'; -import { SctpStreamParameters } from './sctpParametersTypes'; +import type { SctpStreamParameters } from './sctpParametersTypes'; import * as utils from './utils'; import { UnsupportedError } from './errors'; import * as FbsRtpParameters from './fbs/rtp-parameters'; diff --git a/node/src/rtpParametersFbsUtils.ts b/node/src/rtpParametersFbsUtils.ts index 88656d1aaa..727eb1cd1e 100644 --- a/node/src/rtpParametersFbsUtils.ts +++ b/node/src/rtpParametersFbsUtils.ts @@ -1,5 +1,5 @@ import * as flatbuffers from 'flatbuffers'; -import { +import type { RtpParameters, RtpCodecParameters, RtcpFeedback, diff --git a/node/src/sctpParametersFbsUtils.ts b/node/src/sctpParametersFbsUtils.ts index b8b5375c51..a99f86d88b 100644 --- a/node/src/sctpParametersFbsUtils.ts +++ b/node/src/sctpParametersFbsUtils.ts @@ -1,5 +1,5 @@ import * as flatbuffers from 'flatbuffers'; -import { +import type { SctpStreamParameters, SctpParametersDump, } from './sctpParametersTypes'; diff --git a/node/src/srtpParametersFbsUtils.ts b/node/src/srtpParametersFbsUtils.ts index 3cc69fd480..b7b5f0dc48 100644 --- a/node/src/srtpParametersFbsUtils.ts +++ b/node/src/srtpParametersFbsUtils.ts @@ -1,5 +1,5 @@ import * as flatbuffers from 'flatbuffers'; -import { SrtpParameters, SrtpCryptoSuite } from './srtpParametersTypes'; +import type { SrtpParameters, SrtpCryptoSuite } from './srtpParametersTypes'; import * as FbsSrtpParameters from './fbs/srtp-parameters'; export function cryptoSuiteFromFbs( diff --git a/node/src/supportedRtpCapabilities.ts b/node/src/supportedRtpCapabilities.ts index a0f413b71c..2a0d1f5788 100644 --- a/node/src/supportedRtpCapabilities.ts +++ b/node/src/supportedRtpCapabilities.ts @@ -1,4 +1,4 @@ -import { RtpCapabilities } from './rtpParametersTypes'; +import type { RtpCapabilities } from './rtpParametersTypes'; const supportedRtpCapabilities: RtpCapabilities = { codecs: [ diff --git a/node/src/test/test-ActiveSpeakerObserver.ts b/node/src/test/test-ActiveSpeakerObserver.ts index 51a8d59190..2389ad9f2b 100644 --- a/node/src/test/test-ActiveSpeakerObserver.ts +++ b/node/src/test/test-ActiveSpeakerObserver.ts @@ -1,6 +1,6 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, ActiveSpeakerObserverEvents } from '../types'; +import type { WorkerEvents, ActiveSpeakerObserverEvents } from '../types'; import * as utils from '../utils'; type TestContext = { diff --git a/node/src/test/test-AudioLevelObserver.ts b/node/src/test/test-AudioLevelObserver.ts index f1a1a5fb17..33c45a19e9 100644 --- a/node/src/test/test-AudioLevelObserver.ts +++ b/node/src/test/test-AudioLevelObserver.ts @@ -1,6 +1,6 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, AudioLevelObserverEvents } from '../types'; +import type { WorkerEvents, AudioLevelObserverEvents } from '../types'; import * as utils from '../utils'; type TestContext = { diff --git a/node/src/test/test-Consumer.ts b/node/src/test/test-Consumer.ts index cc69554cd4..286076c27a 100644 --- a/node/src/test/test-Consumer.ts +++ b/node/src/test/test-Consumer.ts @@ -1,8 +1,8 @@ import * as flatbuffers from 'flatbuffers'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, ConsumerEvents } from '../types'; -import { ConsumerImpl } from '../Consumer'; +import type { WorkerEvents, ConsumerEvents } from '../types'; +import type { ConsumerImpl } from '../Consumer'; import { UnsupportedError } from '../errors'; import * as utils from '../utils'; import { diff --git a/node/src/test/test-DataConsumer.ts b/node/src/test/test-DataConsumer.ts index f61bb8291c..d8e800855b 100644 --- a/node/src/test/test-DataConsumer.ts +++ b/node/src/test/test-DataConsumer.ts @@ -1,6 +1,6 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, DataConsumerEvents } from '../types'; +import type { WorkerEvents, DataConsumerEvents } from '../types'; import * as utils from '../utils'; type TestContext = { diff --git a/node/src/test/test-DataProducer.ts b/node/src/test/test-DataProducer.ts index 4f490792ce..1dbd8691e7 100644 --- a/node/src/test/test-DataProducer.ts +++ b/node/src/test/test-DataProducer.ts @@ -1,6 +1,6 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, DataProducerEvents } from '../types'; +import type { WorkerEvents, DataProducerEvents } from '../types'; import * as utils from '../utils'; type TestContext = { diff --git a/node/src/test/test-DirectTransport.ts b/node/src/test/test-DirectTransport.ts index a9f773220d..1f6e95e47d 100644 --- a/node/src/test/test-DirectTransport.ts +++ b/node/src/test/test-DirectTransport.ts @@ -1,7 +1,7 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { DirectTransportEvents } from '../DirectTransportTypes'; -import { WorkerEvents } from '../types'; +import type { DirectTransportEvents } from '../DirectTransportTypes'; +import type { WorkerEvents } from '../types'; type TestContext = { worker?: mediasoup.types.Worker; diff --git a/node/src/test/test-PipeTransport.ts b/node/src/test/test-PipeTransport.ts index 1d7534ac04..19910e1e48 100644 --- a/node/src/test/test-PipeTransport.ts +++ b/node/src/test/test-PipeTransport.ts @@ -1,7 +1,7 @@ import { pickPort } from 'pick-port'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { +import type { WorkerEvents, ConsumerEvents, ProducerObserverEvents, diff --git a/node/src/test/test-PlainTransport.ts b/node/src/test/test-PlainTransport.ts index abd7c326b9..c8b8ded96b 100644 --- a/node/src/test/test-PlainTransport.ts +++ b/node/src/test/test-PlainTransport.ts @@ -2,7 +2,7 @@ import * as os from 'node:os'; import { pickPort } from 'pick-port'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, PlainTransportEvents } from '../types'; +import type { WorkerEvents, PlainTransportEvents } from '../types'; import * as utils from '../utils'; const IS_WINDOWS = os.platform() === 'win32'; diff --git a/node/src/test/test-Producer.ts b/node/src/test/test-Producer.ts index 3cdeae6ffb..38ad33607f 100644 --- a/node/src/test/test-Producer.ts +++ b/node/src/test/test-Producer.ts @@ -1,8 +1,8 @@ import * as flatbuffers from 'flatbuffers'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, ProducerEvents } from '../types'; -import { ProducerImpl } from '../Producer'; +import type { WorkerEvents, ProducerEvents } from '../types'; +import type { ProducerImpl } from '../Producer'; import { UnsupportedError } from '../errors'; import * as utils from '../utils'; import { diff --git a/node/src/test/test-Router.ts b/node/src/test/test-Router.ts index bc79574d9b..0affb75ef6 100644 --- a/node/src/test/test-Router.ts +++ b/node/src/test/test-Router.ts @@ -1,7 +1,7 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerImpl } from '../Worker'; -import { WorkerEvents, RouterEvents } from '../types'; +import type { WorkerImpl } from '../Worker'; +import type { WorkerEvents, RouterEvents } from '../types'; import { InvalidStateError } from '../errors'; import * as utils from '../utils'; diff --git a/node/src/test/test-WebRtcServer.ts b/node/src/test/test-WebRtcServer.ts index 2376e6569d..669e8ab8ef 100644 --- a/node/src/test/test-WebRtcServer.ts +++ b/node/src/test/test-WebRtcServer.ts @@ -1,10 +1,10 @@ import { pickPort } from 'pick-port'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerImpl } from '../Worker'; -import { WorkerEvents, WebRtcServerEvents } from '../types'; -import { WebRtcServerImpl } from '../WebRtcServer'; -import { RouterImpl } from '../Router'; +import type { WorkerImpl } from '../Worker'; +import type { WorkerEvents, WebRtcServerEvents } from '../types'; +import type { WebRtcServerImpl } from '../WebRtcServer'; +import type { RouterImpl } from '../Router'; import { InvalidStateError } from '../errors'; type TestContext = { diff --git a/node/src/test/test-WebRtcTransport.ts b/node/src/test/test-WebRtcTransport.ts index 8fad39909e..99cad042b1 100644 --- a/node/src/test/test-WebRtcTransport.ts +++ b/node/src/test/test-WebRtcTransport.ts @@ -2,9 +2,9 @@ import { pickPort } from 'pick-port'; import * as flatbuffers from 'flatbuffers'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents, WebRtcTransportEvents } from '../types'; -import { WebRtcTransportImpl } from '../WebRtcTransport'; -import { TransportTuple } from '../TransportTypes'; +import type { WorkerEvents, WebRtcTransportEvents } from '../types'; +import type { WebRtcTransportImpl } from '../WebRtcTransport'; +import type { TransportTuple } from '../TransportTypes'; import { serializeProtocol } from '../Transport'; import * as utils from '../utils'; import { diff --git a/node/src/test/test-Worker.ts b/node/src/test/test-Worker.ts index a00ba79fb0..ecf6210059 100644 --- a/node/src/test/test-Worker.ts +++ b/node/src/test/test-Worker.ts @@ -3,7 +3,7 @@ import * as process from 'node:process'; import * as path from 'node:path'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents } from '../types'; +import type { WorkerEvents } from '../types'; import { InvalidStateError } from '../errors'; test('Worker.workerBin matches mediasoup-worker absolute path', () => { diff --git a/node/src/test/test-mediasoup.ts b/node/src/test/test-mediasoup.ts index bfafad5f7f..98dad17115 100644 --- a/node/src/test/test-mediasoup.ts +++ b/node/src/test/test-mediasoup.ts @@ -2,7 +2,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { enhancedOnce } from '../enhancedEvents'; import * as mediasoup from '../'; -import { WorkerEvents } from '../types'; +import type { WorkerEvents } from '../types'; const PKG = JSON.parse( fs.readFileSync(path.join(__dirname, '..', '..', '..', 'package.json'), { diff --git a/node/src/test/test-multiopus.ts b/node/src/test/test-multiopus.ts index 4b8ab50450..e1925fe7a1 100644 --- a/node/src/test/test-multiopus.ts +++ b/node/src/test/test-multiopus.ts @@ -1,6 +1,6 @@ import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents } from '../types'; +import type { WorkerEvents } from '../types'; import { UnsupportedError } from '../errors'; import * as utils from '../utils'; diff --git a/node/src/test/test-node-sctp.ts b/node/src/test/test-node-sctp.ts index e344c1a484..87a79cbcc6 100644 --- a/node/src/test/test-node-sctp.ts +++ b/node/src/test/test-node-sctp.ts @@ -3,7 +3,7 @@ import * as dgram from 'node:dgram'; import * as sctp from 'sctp'; import * as mediasoup from '../'; import { enhancedOnce } from '../enhancedEvents'; -import { WorkerEvents } from '../types'; +import type { WorkerEvents } from '../types'; type TestContext = { worker?: mediasoup.types.Worker;