DEV Community

Discussion on: Why does typescript not conditionally pick the right type in a union?

Collapse
 
hnicolas profile image
Nicolas Hervé

You should look at type guards : typescriptlang.org/docs/handbook/a...