-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript type definitions #83
Comments
doing the argument signature would be doable but getting types on the API response shapes would be a lot of work without some kind of tool to automate it. I don't have a lot of time at the moment, but might take a stab at this later, or PRs are welcome! |
I've created types just for the methods I'm using, for myself. I use http://json2ts.com/ to create the API response types. I can tell you that the types are a mess though. Like, some endpoints will return a different format for the same property name. |
Yeah I've noticed that they seem to have rather lax standards for API development and consistency. |
EDIT: I figured it out, should have types soon. @garyking do you have any experience writing If you check out that branch, you can generate the underlying types for each data endpoint with this:
the library I used https://github.com/jvilk/MakeTypes seems to put out somewhat better definitions than http://json2ts.com/ |
It would be great to have TypeScript type definitions for this library. Thanks!
The text was updated successfully, but these errors were encountered: