papr icon indicating copy to clipboard operation
papr copied to clipboard

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

Open italodeandra opened this issue 1 year ago • 0 comments

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

italodeandra avatar Sep 01 '24 06:09 italodeandra