Skip to content

Omit type causes maximum call stack size exceeded in v2.4.0 #2425

@abdalla-rko

Description

@abdalla-rko

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'> {
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions