the process of refining types to more specific types than declared is called narrowing.
Narrowingarrow-up-right
this-based type guardsarrow-up-right (this is ยซTยป)
this is ยซTยป
๐ discriminated union
type predicate - ยซparamยป is ยซTยป
ยซparamยป is ยซTยป
discriminated union - common property with literal types
Last updated 4 years ago