Skip to content

types.any() causes TypeScript error TS2589: Type instantiation is excessively deep and possibly infinite. #914

@italodeandra

Description

@italodeandra

When I try to use this type, a lot of places where I use this collection start throwing this error and my IDE memory usage goes to the roof and then crashes. Probably because of some kind of type loop.

Tried to use the workaround types.object({} as any), but it has the same issue.

Any idea what I might be doing wrong?

Papr Version: 15.2.2
TypeScript Version: 5.5.4
Node Version: 20.16.0

Metadata

Metadata

Assignees

No one assigned

    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