You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making typebox the one source of truth, so I'm defining the descriptions for the format on the TypeBox schemas description: "Some info here" fields.
That way I can serialize the schemas into sometype.schema.json files and have access to the same doc-comments inside the serialized schema files "compiled" from the typebox the specification.
My goal now is to somehow generate a typescript code file that contains my typebox descriptions preserved as doc-comments.
I'm aware of both type Thing = Static<typeof SomeTypeboxSchema> and typebox-codegen, but I haven't found how to achieve typescript code generation from typebox schemas.
Is there an existing tool to do this type T = ... typescript code generation programmatically?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm writing a file format similar to the json representation of the
glTF
spec.I'm making typebox the one source of truth, so I'm defining the descriptions for the format on the TypeBox schemas
description: "Some info here"
fields.That way I can serialize the schemas into
sometype.schema.json
files and have access to the same doc-comments inside the serialized schema files "compiled" from the typebox the specification.My goal now is to somehow generate a typescript code file that contains my typebox descriptions preserved as doc-comments.
I'm aware of both
type Thing = Static<typeof SomeTypeboxSchema>
and typebox-codegen, but I haven't found how to achieve typescript code generation from typebox schemas.Is there an existing tool to do this
type T = ...
typescript code generation programmatically?Beta Was this translation helpful? Give feedback.
All reactions