template literal types (new in typescript 4.1)

preview_player
Показать описание
Template literal types help you in defining patterns in how a string need to be constructed. How do you define a type that is a string that needs to start with a common string. In this video I explain you how you can use that with in typescript 4.1. Also more advanced usage will be explained.

Every week we provide you with a new video around typescript, javascript, web development, innovation, ... so subscribe to this channel to learn new stuff.
Рекомендации по теме
Комментарии
Автор

This is great. I love the fact that they allow recursive type definitions. TypeScript is slowly turning into a more flexible version of Haskell or Idris.

avi