typebox-codegen
typebox-codegen copied to clipboard
Code Generation for TypeBox Types
I'm working with TS files that contain references to types defined in the same interface. TypeScriptToModel seems to be using Recursive types for this scenario but fails when the nesting...
ModelToTypeScript doesn't appear to quote object keys that have spaces in them, resulting in `SyntaxError: Property or signature expected` (when Prettier tries to format the resulting code, I assume). Easy...
As the title says, I have a codebase which contains TypeScript declare files, and want to convert them to typebox schema. However, after reading the docs, it seems that only...
An input of: ```ts interface A { b: B } interface B { x: number; } ``` Generates this typebox: ```ts import { Type, Static } from "@sinclair/typebox"; type A...
It is really great if string with jsodoc generate correct validation for JS/TS currently: ```ts const code = ` /** * @format email */ type V = string; ` const...
When `useEmitConstOnly` is true, the `type` declarations are excluded from the output.
Update all model-to-xxxxx that seemed affected by the N^M reference checks. Fixes #56
Adds formatting for strings
Just tried this use this project on my huge swagger file with ~25,000 types (huge thanks btw!) and while it worked, it took **2.5 hours** to process my model. I...
It seems that when a TypeScript type defines an element with reference to an Enum member, codegen does a straight copy of the definition which leads to an error. See...