taxjar / taxjar-node

Sales Tax API Client for Node
https://developers.taxjar.com/api/reference/?javascript
MIT License
54 stars 24 forks source link

Return types #38

Closed mixedCase closed 5 years ago

mixedCase commented 5 years ago

Currently all methods return any, meaning we have to define your backend's responses on our end (with our own checks to make sure our documentation-based assumptions are actually correct) to have type-safety. Any plans to support this?

ScottRudiger commented 5 years ago

@mixedCase Thanks for bringing this up! Yes, actually we plan to add return types for all the methods. We'll likely use a union type and return either that type or an error type.

Will update you here when it's released. 👍