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 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 is more than one level deep.
Example:
import * as Codegen from '@sinclair/typebox-codegen';
const Code = `
interface foo {
bar: {
ref: foo['bar']['baz'];
baz: {};
};
}
`;
const boom = Codegen.TypeScriptToModel.Generate(Code);