aribouius / jsonapi-react

A minimal JSON:API client and React hooks for fetching, updating, and caching remote data.
MIT License
149 stars 28 forks source link

Add TypeScript declaration #20

Closed nlap closed 3 years ago

nlap commented 4 years ago

Thanks for this package!

This adds types definitions to the public APIs. All of the examples in the readme pass type checking. Some of the typings err on the loose side, but should still be really helpful for typescript users.

nlap commented 4 years ago

Thanks @jonahsol, those are great improvements. l added them in, with a few slight changes, and they're working well on my project. Are you able to take another look?

aribouius commented 3 years ago

Great contribution @nlap, and thanks for everyone's input!

aribouius commented 3 years ago

Types are now available as of version 0.0.22.