Union types and difference between an interface and a type

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this video you will find concepts of literal types, union types and intersection of types in typescript. Intersection of types is useful when you have to extend properties of a type. This is similar to using extend keyword in Interfaces. There are other differences as well. Particularly interfaces cannot form unions just like types. All these differences have been explained by practical examples in this video.

Комментарии •