TypeScript Template Literal Types // So much power ☢️

  Рет қаралды 6,192

basarat

basarat

Күн бұрын

One of the most requested demos on this channel has been #TypeScript template literal types. So in this tutorial we will break down how this feature works in TypeScript and some real-world use cases 🌹
🚥 Professional Courses
www.booleanart.com/
#basarat
Chapters:
0:00 Why
0:17 Template Literal Types
2:25 Example Use Cases
4:45 Final Thoughts
👇 ❤️ Subscribe for MOORE ❤️ 👇
/ basaratali
*Feel Free To Read This Lot*
I'm Basarat, and I love helping developers. More about me:
Microsoft MVP for TypeScript
200K contributions on Stackoverflow. Top Contributor for TypeScript.
Udemy Courses: www.udemy.com/user/basaratali...
Creator designtsx.com
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Egghead Instructor : egghead.io/instructors/basara...
Creator of multiple hot ✨ed Github Open Source projects
Follow me on twitter: / basarat
Follow me on github: github.com/basarat
Donate: www.paypal.me/basaratali
Website: basarat.com/

Пікірлер: 16
@tkdevlop
@tkdevlop 2 жыл бұрын
Powerful indeed
@jeffbenson3222
@jeffbenson3222 2 жыл бұрын
I did not know you could use template literals in type definitions themselves. Amazing!
@avi3681
@avi3681 2 жыл бұрын
Although you did not demonstrate it, what you said in the video made me realize you can use a template literal type inside a template literal type. The possibilities are mind blowing.
@basarat
@basarat 2 жыл бұрын
Good point! ❤️🌹
@dheer730
@dheer730 8 ай бұрын
thanks! you are a fabulous programmer this softens the blow for people reading the official doc that just has complicated and advanced examples for people who are just starting out x_x
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
this is super powerful
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
helping you to break KZbin algorithm
@basarat
@basarat 2 жыл бұрын
Thanks 🙏🏻
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
@@basarat your tutorial is so awesome😍😍
@tusharkawsar
@tusharkawsar 2 жыл бұрын
Thank you for this content. Do you think this should be added to your awesome "Advanced TypeScript" playlist? I follow that one closely.
@basarat
@basarat 2 жыл бұрын
Done! I normally do it one day after as a part of the sweep "post release tasks". But a comment like this always makes sure I don't forget 🌹
@sisiradhikari9577
@sisiradhikari9577 Жыл бұрын
Very nice!
@basarat
@basarat Жыл бұрын
Thanks 😊
@Johnny-rn8fb
@Johnny-rn8fb Жыл бұрын
noice
@basarat
@basarat Жыл бұрын
Thanks for leaving a comment
@aram5642
@aram5642 4 ай бұрын
Whoever gets confused: 'ex' is actually a valid css unit, it's only for this specific example that we for some reason don't want it.
TypeScript Mapped Types as clauses // Hidden Gem
4:27
basarat
Рет қаралды 4,5 М.
TypeScript Wizardry: Recursive Template Literals
14:47
Tech Talks with Simon
Рет қаралды 36 М.
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 178 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 21 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 26 МЛН
TypeScript Enums are Bad // Alternatives to use
8:19
basarat
Рет қаралды 7 М.
TypeScript TYPES vs INTERFACES (Key Differences)
7:16
basarat
Рет қаралды 95 М.
Utility Types - Advanced TypeScript
35:33
Dmytro Danylov
Рет қаралды 68 М.
Conditional Types - Advanced TypeScript
23:10
Dmytro Danylov
Рет қаралды 36 М.
Typescript Basic Types - Beginners Lesson
16:16
Dave Gray
Рет қаралды 18 М.
Zod Goes Where TypeScript Can't
8:11
Theo - t3․gg
Рет қаралды 54 М.
They exchanged their daughter for another child😢🙈
0:35
Senchiki_social
Рет қаралды 2,9 МЛН
Quantas bolas o Cacau estourou?
0:15
F L U S C O M A N I A
Рет қаралды 38 МЛН
Just try to use a cool gadget 😍
0:33
123 GO! SHORTS
Рет қаралды 61 МЛН