TypeScript is Literal Magic

preview_player
Показать описание
TypeScript Tip! Merge union types into every possible combination using template literal types.

#shorts #js #typescript

Рекомендации по теме
Комментарии
Автор

Now let me watch that 4 more times to get it :P

Kevin
Автор

Any sufficiently advanced technology is indistinguishable from magic.
- Arthur C Clarke

sidhantsrivastava
Автор

Me : Using Angular for 3 yrs
Fire ship : YOU KNOW NOTHING

joelee
Автор

_Literal_ Magic. I see what you did there 😜.

abdullahseba
Автор

Nice, now i can finally make totally inappropriate scripts to get me fired

rutvikpanchal
Автор

javascript: a variable can switch to any type you want
fireship: let's do that in typescript

blazefirer
Автор

I have learnt a lot of new things that I have never worked with from your videos, like AWS, nginx, kubernetes, graphQL(and other dbs), typescript to name a few. One thing that I don't understand is how they work together. I would really love to see a video where you design a mock system using all of these (and possibly more) and explain each of their roles and why you chose it (kinda like your reverse-cloud migration video using raspberry pi).

Whenever I think of a software architecture I think of them as several layers that interact with each other. However, I am unable to assign which layer what belongs to by watching a stand alone tutorial about a single tool.

 Btw, I am a college senior pursuing CS major and I love your content. Thanks for all the awesome contents.

anupamdahal
Автор

That's pretty interesting, never knew about it

EagleZH
Автор

Imagine if this existed in css, lot of libraries would see their last days

bowiemtl
Автор

This is really is magic, I remember to read this feature suggestion in some repo and just thrilled to use it

TuanLe-tddg
Автор

I like shorts, they're comfy and easy to wear

bepd
Автор

This is amazingly interesting cuz I wanted the same thing in my code and today I googled for it. Now I found this video a few hours after. The god of typescript's trying to tell me something.

FrameMuse
Автор

That is pretty neat, can't deny it.

chrzan
Автор

This might be the most glorious thing I’ve witnessed all week

priceyindividual
Автор

I didn’t know I needed this in my life until I saw it

producdevity
Автор

Slowly falling into love with Typescript! Thanks to you 🌹

rbrishabh
Автор

Wow... Now that is a lovely type system! Gets me more interested in picking up Typescript for sure!

baka_baca
Автор

Now my todo list app knows exactly knows what type of data accept. The 🌮 type.

AnyFactor
Автор

Fireships love for emojis is what tech YouTube needed

madimadisofian
Автор

There was only one time I really applied this feature, love typescript

mralex