# TypeScript file for the Janus JS files

**URL:** <https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249>\
**Category:** General\
**Created:** [May 20, 2023, 6:17am UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249 "2023-05-20T06:17:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DCWolf](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@DCWolf](https://janus.discourse.group/u/DCWolf)\
**Post date:** [May 20, 2023, 6:17am UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249/1 "2023-05-20T06:17:53Z")

</div>

Hi all,

I’m using a Typescript project and made the whole Janus JS files Typed a while ago.  
But now there are many changes again, is it possible for me to contribute and deliver Typed Janus files?  
It can easily be compiled to JS, but it will improve the development and reduce errors a lot.

Otherwise I would have to merge the changes by hand everytime the JS file changes.

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [May 20, 2023, 1:02pm UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249/2 "2023-05-20T13:02:32Z")

</div>

A lot of people contributed TS fixes already, so please make sure you check the latest code. That said, we always welcome contributions, so in case you want to provide something we can look at it: we won’t accept complete replacements of `janus.js`, though.

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [May 21, 2023, 5:04pm UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249/3 "2023-05-21T17:04:19Z")

</div>

As an alternative, you may want to have a look at [Janode](https://github.com/meetecho/janode/) instead.

---

<div class="post-metadata">

**Author:** ![DCWolf](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@DCWolf](https://janus.discourse.group/u/DCWolf)\
**Post date:** [May 22, 2023, 2:47pm UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249/4 "2023-05-22T14:47:10Z")

</div>

Well at this moment I have my own ‘Typed’ version of Janus.js and videoroom.js (both for the frontend) the server is working properly, but I needed some adjustments in the janus.js / videoroom.js code, which was easier if everything would be Typescript.  
Can you point where the Typescript contributions are?

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [May 22, 2023, 3:09pm UTC](https://janus.discourse.group/t/typescript-file-for-the-janus-js-files/249/5 "2023-05-22T15:09:44Z")

</div>

You can find some pull requests [here](https://github.com/search?q=repo%3Ameetecho%2Fjanus-gateway+typescript&type=pullrequests). Most were done for the module version of janus.js, I think.
