type-fest
type-fest copied to clipboard
`Type instantiation is excessively deep` in `ReadonlyDeep`
Hi,
I recently updated my declaration of ReadonlyDeep to use the new call signature handling from #359, however, I get error TS2589: Type instantiation is excessively deep and possibly infinite. :(
See the repro in the playground for details.
@marekdedic I'm not sure why you want to make the jQuery object read-only (and deep). It's a huge object with lots of references to HTML objects and as the update includes index signatures all these objects will be made read-only deep which makes TS reach its memory limit very quickly.
Hi, for the same reason you'd make anything read-only I think 😀 To have stricter control over what gets modified...
I agree that the jQuery object is huge, that's why it crashes...