Skip to content

Commit

Permalink
types.ts: export only types of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jan 8, 2025
1 parent 39367b5 commit 3c20410
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions node/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export type * from './rtpStreamStatsTypes';
export type * from './sctpParametersTypes';
export type * from './srtpParametersTypes';
export type * from './scalabilityModesTypes';

// TODO: Here we are exporting real classes rather than types. This should
// be exported somehow else rather than in mediasoup.types namespace.
export * from './errors';
export type * from './errors';

type Only<T, U> = {
[P in keyof T]: T[P];
Expand Down

0 comments on commit 3c20410

Please sign in to comment.