# React-native-webrtc in TypeScript project

**URL:** <https://react-native-webrtc.discourse.group/t/react-native-webrtc-in-typescript-project/1622>\
**Category:** General\
**Created:** [September 22, 2022, 8:04am UTC](https://react-native-webrtc.discourse.group/t/react-native-webrtc-in-typescript-project/1622 "2022-09-22T08:04:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thaigun](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/thaigun/32/652_2.png) [@Thaigun](https://react-native-webrtc.discourse.group/u/Thaigun)\
**Post date:** [September 22, 2022, 8:04am UTC](https://react-native-webrtc.discourse.group/t/react-native-webrtc-in-typescript-project/1622/1 "2022-09-22T08:04:23Z")

</div>

Hi,  
I started integrating this package into my TypeScript project, but that seems to yield a bunch of problems as many of the core APIs return _unknown_ types and accept _any_ parameters. However the package seems to be written in TypeScript. Now to my questions:

- How are people using the package in their TypeScipt projects? Do you use the external [DefinitelyTyped package](https://www.npmjs.com/package/@types/react-native-webrtc) or what’s your approach?
- Are there plans to properly type the offered APIs for better support in TypeScript dependents?
- Would this be a welcomed contribution?
- I haven’t used TypeScript in earlier projects, there could be something obvious I’m missing.

Thanks for sharing any thoughts!

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 23, 2022, 8:00am UTC](https://react-native-webrtc.discourse.group/t/react-native-webrtc-in-typescript-project/1622/2 "2022-09-23T08:00:53Z")

</div>

> [@Thaigun](#):
>
> - Are there plans to properly type the offered APIs for better support in TypeScript dependents?
> - Would this be a welcomed contribution?

This 🙂 we welcome contributions in this space.
