Type narrowing based on function typeof is broken when function is intersected with a record #45801
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
type narrowing based on function typeof is broken when intersection with a record is used
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
behavior was half correct from in TS versions <= 4.2.3, but then it was changed in 4.3.5 which fixed the part that was wrong previously, but broke the other part that was correct. So we still have half broken behavior.
π Expected behavior
It's expected to pick the correct parts from the both versions.
The text was updated successfully, but these errors were encountered: