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

Express type inheritance and generic type parameters in generated Typescript code #63

Open
rsek opened this issue Jun 29, 2024 · 0 comments
Labels
js/ts Generated code for Javascript and Typescript

Comments

@rsek
Copy link
Owner

rsek commented Jun 29, 2024

Internally, the JSON schema (which is the source of truth for all typings) is composed in ways that parallel common OOP patterns like class inheritance and generic type parameters.

This information could be attached as a symbol property during TypeBox composition. Ideally, it will be expressed in a language-agnostic way; for the time being it would just be used for TS types, but it may be useful for Python, too (see #62).

@rsek rsek added the js/ts Generated code for Javascript and Typescript label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js/ts Generated code for Javascript and Typescript
Projects
None yet
Development

No branches or pull requests

1 participant