Skip to content

Interface extends type with itself as generic - Maximum call stack size exceeded #183

@Pmyl

Description

@Pmyl
interface InterfaceWithGenerics<T> {

}

interface ItBreaks extends InterfaceWithGenerics<ItBreaks> {

}

createMock<ItBreaks>(); // maximum call stack size exceeded

An example of this can be found in @types/jquery -> misc.d.ts -> interface Animation<TElement> extends ...

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