Narrowing
the process of refining types to more specific types than declared is called narrowing.
this-based type guards (
this is ยซTยป
)
Topics
type predicate -
ยซparamยป is ยซTยป
discriminated union - common property with literal types
Last updated
Was this helpful?