TypeScript Union type a deeper look
The TypeScript Union type is excellent if your type can consist of multiple values/types.
We define a union type using the pipe character (|).
For instance this Union type between a string and a number.
type myUnion = string | number;
However, depen...
h.daily-dev-tips.com3 min read