narrowing doesn't work when spreading from ternary operator #45769
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Bug Report
π Search Terms
narrow spread ternary
π Version & Regression Information
v4.5.0-dev.20210907
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
π Expected behavior
no error, since it's not possible for the object to not match either the
Foo
orBar
typesThe text was updated successfully, but these errors were encountered: