Hi, I am using typeconv to convert a JSON schema to suretype. I noticed that for required properties whose type is a referenced type, the 'required()' function call does not appear in the generated suretype declaration.
Repro:
test.ts:
export interface A {}
export interface B {
a: A;
}
Hi, I am using typeconv to convert a JSON schema to suretype. I noticed that for required properties whose type is a referenced type, the 'required()' function call does not appear in the generated suretype declaration.
Repro: test.ts:
Run:
output:
should be
The inlined type is created correctly, which also means that, for example, the
ensureB
function is of type never, so cannot be called.I think that in this line, it should be
wrap
instead ofwrapAnnotations
: https://github.com/grantila/core-types-suretype/blob/1ae1e9fa802054e7de7a5c89226aa074cc642b6d/lib/json-schema-to-suretype.ts#L666Thanks for building this :)