Fall-through type narrowing #22524
Unanswered
moneppo
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I opened #22496 as I was using type checks in conditionals, and I realized V doesn’t keep narrowed types outside of the scope of the associated
if/match
. For instance:I’m not sure if this is a feature you all thought about for V. It’s a feature of Typescript - were you considering this for V too?
Beta Was this translation helpful? Give feedback.
All reactions