xBiggs / fightcade-api

An unofficial TypeScript wrapper for the Fightcade API.
MIT License
7 stars 2 forks source link

Add Zod Validation and CommonJS support #2

Closed xBiggs closed 1 year ago

xBiggs commented 1 year ago

I would like to rewrite this library using zod to validate each API response. Since Fightcade does not have API documentation, each API response was observed using network requests. Adding zod validation would warn users if the API changed in the future.

Currently, this project only supports CommonJS. I think adding ESM support with tsup would be nice for people who have already made the switch to modules.