Thank you man! Please keep making this kind of wonderful high quality videos. ⭐⭐⭐⭐⭐
@maysamtayyeb4552
Жыл бұрын
Wowww! Loved that last bit that solved the whole errors. You smashed it once again, Basarat. Your content always worths the time I spend and even more!!
@basarat
Жыл бұрын
What a great comment to wake up to! Thanks Maysam 😊🌹
@dopetag
Жыл бұрын
I love how you go a little bit deeper under the hood. So nice! You deserve more views and subscribers.
@basarat
Жыл бұрын
Thanks! Share it around 😉🌹
@leepowelldev
Жыл бұрын
Discriminated unions are safer where possible, or I tend to prefer the XOR type if I explicitly want one or the other.
@praveenpoonja95
Жыл бұрын
Amazing!! I’ll finish all the videos
@arupupopadhyay4214
5 ай бұрын
Above error is not happening in latest TS any more
@2802ize
Жыл бұрын
Thanks, super helpful
@dimitargetsov9690
3 ай бұрын
Please , new video (or link ) on 2:02 "...However ,this last case is just a lucky coincidence of Typescript structural typing... " . How that happened ?
@fuckyoudurov
Жыл бұрын
Which theme for vs code do you use in this video?
@simplatory802
9 ай бұрын
I tried out the examples, I don't think this is valid anymore. Union type now behaves just like a union type.
@chriscurmi1
Жыл бұрын
Personally I see no advantage in these models. They break srp and do not necessarily represent what they are actually are.
@codeaperture
Жыл бұрын
I love this channel 🙌
@insteresting
8 ай бұрын
I don't think the mental model is broken, because unions in all other contexts always include intersections as one of their proper subsets. I my personal opinion, maybe the TypeScript model for those operations is broken instead, since it does not fit to the conventional way such operations work in set theory, leading to some of the 'gotchas' this video exposes.
@basarat
8 ай бұрын
Well said 🌹
@dixztube
Жыл бұрын
Boy pulled out the arm band ... Coding is sport now ? Lol jk Its interesting comparing ts to other type systems like java or pascal.
@basarat
Жыл бұрын
😂 Typing too fast 😉
@giorgieliozashvili633
Жыл бұрын
Unbealivable that this video has only 1.2k view. great job. i have never faced intersection until today and you really helped me to understand it. thanks
@stephanegongmoga379
Жыл бұрын
You know, the best things are not so popular as we think, that's why we should dig deeper to find them, and when you have them you have gold!!!
@nipundileep1577
Жыл бұрын
@@stephanegongmoga379 true words
@elielberra2867
6 ай бұрын
Amazing explanation! Short but right to the point, thanks!!
@VforVanish
Жыл бұрын
Your TS videos are very helpfull,thanks!
@shashydass4114
Жыл бұрын
Succinct and informative!
@deFrontComOFer
Жыл бұрын
Nice tip, thanks!!
@song1749
Жыл бұрын
*EXCITED* 😊
@pawekoaczynski4505
Жыл бұрын
I was certain that you can't "extend" types in TS like you can extend interfaces. I had no idea that you can do something like that with intersection. Thanks for the video c:
@basarat
Жыл бұрын
Thanks 😊 PS: checkout types vs interfaces kzitem.info/news/bejne/qo53umd_n2Khen4
@Mohammadreza-po9vy
Жыл бұрын
Thanks a lot sir for your useful contents and i appreciate you , big ❤️ from Iran country
@basarat
Жыл бұрын
Comments that mention the origin community are my favourite 😍 I have a number of great colleagues from Iran ❤️ Thanks for sharing 🌹
Пікірлер: 33