# mediasoup 3.15.0 released with TypeScript interfaces

**URL:** <https://mediasoup.discourse.group/t/mediasoup-3-15-0-released-with-typescript-interfaces/6332>\
**Category:** Announcements\
**Created:** [November 11, 2024, 12:07pm UTC](https://mediasoup.discourse.group/t/mediasoup-3-15-0-released-with-typescript-interfaces/6332 "2024-11-11T12:07:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [November 11, 2024, 12:07pm UTC](https://mediasoup.discourse.group/t/mediasoup-3-15-0-released-with-typescript-interfaces/6332/1 "2024-11-11T12:07:30Z")

</div>

mediasoup node 3.15.0 has been released. It comes with important additions all them made in this [PR 1463](https://github.com/versatica/mediasoup/pull/1463):

- `mediasoup.types` namespace no longer exports real JavaScript classes but now it exports TypeScript interfaces.
- For example, `mediasoup.types.Producer` is no longer a class. Now it’s a TypeScript interface and the parent application can use it to mock mediasoup classes for testing purposes, etc.
- Added new `transport.type` getter than returns `'webrtc' | 'plain' | 'pipe' | 'direct'`.
- Added new `rtpObserver.type` getter than returns `'activespeaker' | 'audiolevel'`.

Other than the 2 last additions above, nothing has changed at public API level. However, if your application uses `instanceof` you need to migrate it as follows:

### Previously

```js
if (transport instanceof mediasoupTypes.PlainTransport) {
  // This is a PlainTransport.
}

```

### Now

```js
if (transport.type === 'plain') {
  // This is a PlainTransport.
}

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/b/b318c4d3397e65af9535f79c605b80b9ceb066c8.png) [@system](https://mediasoup.discourse.group/u/system)\
**Post date:** [November 13, 2024, 12:08pm UTC](https://mediasoup.discourse.group/t/mediasoup-3-15-0-released-with-typescript-interfaces/6332/2 "2024-11-13T12:08:20Z")

</div>

Closed on November 13, 2024, 12:08pm UTC

This topic was automatically closed after 2 days. New replies are no longer allowed.
