Closed ibc closed 1 year ago
I'm reverting changes and reopening this ticket. Explained in the commit: https://github.com/versatica/mediasoup/commit/760f203dfe19aabe2e46684d8c7814e3cee6dd30
Will do it again once we can assume that people uses typescript >= 5 in their apps.
Closing. We do want to export real JS classes. Why not? We want to be able to do this:
import { Producer } from 'mediasoup-client/lib/types';
producer instanceof Producer;
This is not possible if we export Producer
as a type.
As @satoren told in https://github.com/versatica/mediasoup-client/pull/272#issuecomment-1619340353:
NOTE: This was done and later reverted here https://github.com/versatica/mediasoup/commit/760f203dfe19aabe2e46684d8c7814e3cee6dd30 because it requires typescript >= 5 in the apps that import mediasoup-client. We'll do this again once we can assume that all users use typescript >= 5.