Assertion function & Type guards for Record types broken on 5.0 #53379
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
π Search Terms
π Version & Regression Information
Worked on 4.9, broken since 5.0
Probably introduced by #52984
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Property 'anything' does not exist on type '{}'.(2339)
π Expected behavior
No error, narrowing / assertion should work fine.
The text was updated successfully, but these errors were encountered: