ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Omit type causes maximum call stack size exceeded in v2.4.0
Regression in 2.4.0 where Omit type that is causing an issue is not properly omitted and maximum call stack size exceeded, which was working in 2.3.0.
Here is the set of interfaces that is causing the issue when generating the JSON schema.
type ArrayElement<A> = A extends readonly (infer E)[] ? E : A;
interface IItems<T = any> {
items?: IItems<ArrayElement<T>>;
}
export interface IFormProps extends Omit<IItems, 'items'> {
}
Thanks for the report. Do you know what change caused this? Can you work on a fix?
lets see if copilot manages to fix this one 🤣