Array.filter
does not properly narrow down type
#52247
Labels
Duplicate
An existing issue was already created
Bug Report
π Search Terms
array filter narrow down
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
The
fooItems
is of typeIFoo | IBar
π Expected behavior
I would have expected
fooItems
to beIFoo[]
.The text was updated successfully, but these errors were encountered: