Closed Theartbug closed 1 year ago
Thanks for the report. Can you provide a minimal reproducible example that demonstrates the issue?
Also, have you tried ts json schema generator?
I have a same issue,
I tried generate Schema for "Main" type
type Util = {
a: {
b: string;
};
};
export type Main = {
[Key in keyof Util]: {
[key: string]: Util[Key];
};
};
typescript-json-schema : 0.55.0 typescript: ~4.9.3 node: 18.12.1
@domoritz @YousefED
My team is trying to implement the
AtLeastOne<T>
generic type created by the Microsoft Azure team: https://learn.microsoft.com/en-us/javascript/api/@azure/keyvault-certificates/requireatleastone?view=azure-node-latestWe've poked around a bit and notice when we remove
[keyof T]
at the end, it can generate theschemas.json
. We are wondering if it has something to do with recursion?The output error text is too long to retrieve full logs, but it looks like this: