What are Template Literal Types in TypeScript?

Published: 29 March 2024
on channel: Flo Woelki
264
11

This is the most exciting string feature in TypeScript I've ever seen. With it, you can use template literals as a type! If you're excited about another brilliant feature of TypeScript, check out this video:    • How did I not know this TypeScript ty...  


📝 Description
In this video, I'll guide you through the concept of Template Literal Types in TypeScript. We'll begin with a brief introduction to string literal types, and then delve into the fascinating world of template literal types. I'll explain how these can be used for more dynamic and expressive type definitions, such as typing API endpoints. Moreover, I'll introduce you to magical String Utilities which can transform and manipulate your strings in various ways. Uppercase, lowercase, capitalize, uncapitalize - the power is in your hands!


⏳ Timestamps:
00:00 - Introduction
00:38 - Simple String Type
01:32 - Use Case 1
05:23 - Use Case 2
06:48 - String Utility Types
09:03 - Outro


👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using Emojis and paper-based animations (so have a look for that, if you want to find my videos).


📨 Support and Connect!
Buy me a coffee: https://www.buymeacoffee.com/florianw...
Become a member: https://www.youtube.com/@flowoelki/me...
Discord:   / discord  
Instagram:   / flowydev  
LinkedIn:   / florian-woelki  
TikTok:   / florianwoelki  
GitHub: https://github.com/FlorianWoelki


#typescript #templatestring #typescripttutorial


Watch video What are Template Literal Types in TypeScript? online without registration, duration hours minute second in high quality. This video was added by user Flo Woelki 29 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 264 once and liked it 11 people.