dmotz / trystero

✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
https://oxism.com/trystero
MIT License
1.29k stars 90 forks source link

typescript types #18

Closed JohnDeved closed 2 years ago

JohnDeved commented 2 years ago

typescript types for the library would be neat.

jeremyckahn commented 2 years ago

I've got Trystero types defined for my own TypeScript-based project: https://github.com/jeremyckahn/chitchatter/blob/f0a440491094da1917e1e04d7cc0782576358dd2/src/react-app-env.d.ts#L4-L102

I will work to get this into a PR soon!

dmotz commented 2 years ago

Types are now available in 0.11.3 on npm.