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

Add typescript support and openapi integration with backend #5

Open
devnook opened this issue May 31, 2024 · 1 comment
Open

Add typescript support and openapi integration with backend #5

devnook opened this issue May 31, 2024 · 1 comment

Comments

@devnook
Copy link
Collaborator

devnook commented May 31, 2024

From @jcscottiii :

Typing:

To help with the responses and preventing yourself from having to manually check the possible values, you could generate the types based on the openapi document for the backend. Then use type hinting annotations to help. This will help with the maps between data and css classes as well as reduce any other potential bugs (like the values for browser implementation). You can use something like this to generate the typing based on the openapi.yaml: https://www.npmjs.com/package/openapi-typescript

@devnook devnook mentioned this issue May 31, 2024
@jcscottiii
Copy link
Collaborator

In the meantime, I suggested some JS type definitions to help out #4 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants