Skip to content
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

Consider adding option to generate TypeScript typings for object type(s) #9

Open
michalczukm opened this issue Jan 22, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@michalczukm
Copy link

While playing with some external APIs the most annoying thing is to write types for it, or manually generating them from json-schema by external lib.

In lot of simple scenarios you'd like just to grab type for particular response for one endpoint.
From UI perspective, it could be just a button on object. Eventually - an option to generate all types based on json-schema (which might be simpler to be fair)
image

@robertmassaioli
Copy link
Collaborator

robertmassaioli commented Jan 23, 2021

Cool idea! What do you see as the value of this over somebody just using https://www.npmjs.com/package/json-schema-to-typescript themselves? (Not saying that it's a bad idea, just trying to clarify)

@michalczukm
Copy link
Author

I'm also using json-schema-to-typescript in those cases :D The idea is to basically run it from the page/docs level.
Why? To lower the entry of using API with TS codebase (one click on page while you're in context VS using small small cli util)

@robertmassaioli robertmassaioli added the enhancement New feature or request label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants