Branded Alias
This lesson introduces the pattern of branded aliases to enable different structures at design and runtime.
We'll cover the following
Limitations
One strength of TypeScript is that it relies on structure, similar to how JavaScript does not rely on type names. However, in some circumstances, it can be a limitation. The main case is when we want to know the type of a specific object, for example, in order to access specific type properties or to compare another object.
Get hands-on with 1400+ tech skills courses.