subins2000 / p2pt

Simple WebRTC Peer 2 Peer connections using WebTorrent trackers as the signalling server. Use WebTorrent trackers for any kind of WebRTC app ! 🔥 Make WebRTC apps fast & easy ! 🚀⭐
https://WebDrop.Space
MIT License
564 stars 52 forks source link

Typescript definitions #43

Closed arilotter closed 2 years ago

arilotter commented 2 years ago

Hey! I'm using p2pt in a hobby project, and found it very useful to have Typescript typings. I see that https://github.com/subins2000/p2pt/issues/4 hasn't had any progress, so in the meantime, I'd like to offer my type definitions :)

It does technically limit the functions you can call, but I've typed everything that's part of api-docs.md. Please LMK if you'd like me to type anything else!

subins2000 commented 2 years ago

Hi, thank you for the PR ! I'll take a look at this when I'm free, maybe next week. Thanks once again!