Skip to content

Commit

Permalink
Revert PR #1109 "Node: make types.ts only export types rather than th…
Browse files Browse the repository at this point in the history
…e entire class/code"

Such a change requires typescript >= 5 in the apps that import mediasoup. We'll do this again once we can assume that all users use typescript >= 5.
  • Loading branch information
ibc committed Jul 13, 2023
1 parent 5d31b53 commit a9a34ca
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions node/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
export type * from './Worker';
export type * from './WebRtcServer';
export type * from './Router';
export type * from './Transport';
export type * from './WebRtcTransport';
export type * from './PlainTransport';
export type * from './PipeTransport';
export type * from './DirectTransport';
export type * from './Producer';
export type * from './Consumer';
export type * from './DataProducer';
export type * from './DataConsumer';
export type * from './RtpObserver';
export type * from './ActiveSpeakerObserver';
export type * from './AudioLevelObserver';
export type * from './RtpParameters';
export type * from './SctpParameters';
export type * from './SrtpParameters';
// We cannot export only the type of error classes because those are useless.
export * from './Worker';
export * from './WebRtcServer';
export * from './Router';
export * from './Transport';
export * from './WebRtcTransport';
export * from './PlainTransport';
export * from './PipeTransport';
export * from './DirectTransport';
export * from './Producer';
export * from './Consumer';
export * from './DataProducer';
export * from './DataConsumer';
export * from './RtpObserver';
export * from './ActiveSpeakerObserver';
export * from './AudioLevelObserver';
export * from './RtpParameters';
export * from './SctpParameters';
export * from './SrtpParameters';
export * from './errors';
export type { ScalabilityMode } from './scalabilityModes';

Expand Down

0 comments on commit a9a34ca

Please sign in to comment.