datasworn icon indicating copy to clipboard operation
datasworn copied to clipboard

Express type inheritance and generic type parameters in generated Typescript code

Open rsek opened this issue 1 year ago • 0 comments

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 avatar Jun 29 '24 03:06 rsek