TypeScript Deep Dive - Unions and Intersection Types | JSer - Front-End Interview questions

preview_player
Показать описание

Union & Interaction types are commonly used. Just think of them as `or` and `and`.

Discriminating Unions is very powerful and clever TypeScript feature,
And Union Exhaustiveness checking with `never` is another trick we should know.

Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.
Рекомендации по теме