Breaking change: Depth limit now hit for some types in 4.3 #43877
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
π Search Terms
Depth limit 4.3
π Version & Regression Information
β― Playground Link
π» Code
Happens in a large codebase, I am currently unable to reproduce. The new error appears when a complex mapped & conditional type is used
π Actual behavior
Multiple new:
error TS2589: Type instantiation is excessively deep and possibly infinite.
π Expected behavior
Type checks successfully as in 4.2
Note
I bisected and found that this PR is introducing this break. While the behavior outlined there seems to be a net improvement, maybe a solution that doesn't break existing types can be found? Or if not this should be outlined in the 4.3 release notes as a breaking change.
The text was updated successfully, but these errors were encountered: