TypeScript FINALLY fixed this...

  Рет қаралды 15,030

Jolly Coding

Jolly Coding

21 күн бұрын

TypeScript 5.5 is coming and it promises to solve a massive developer experience issue thats been with us for a while. We're getting inferred type predicates, control flow narrowing for indexed accessess and regex syntax checking!
Announcement Blog Post: devblogs.microsoft.com/typesc...
-------
🐦 Twitter (X): jollycod.ing/x
🤓 Personal Site: jollycod.ing/me
💻 GitHub: jollycod.ing/git
JollyUI: jollycod.ing/ui

Пікірлер: 45
@JollyCoding
@JollyCoding 19 күн бұрын
Have you run into one of these issues before? Excited for 5.5?
@everyumclust7985
@everyumclust7985 18 күн бұрын
1:17 that accidental asterisk terrified the shit out of me
@JollyCoding
@JollyCoding 18 күн бұрын
haha new syntax just dropped
@hut_fire1490
@hut_fire1490 18 күн бұрын
YIELD YIELD
@guruware8612
@guruware8612 17 күн бұрын
Why is asterix so scarry ?
@overoad
@overoad 17 күн бұрын
@@guruware8612 fuckin' pointers!
@2006Pk
@2006Pk 17 күн бұрын
@@overoad INTERNAL POINTER VARIABLE
@IkraamDev
@IkraamDev 19 күн бұрын
Good fixes and a great showcase. Thank you.
@wardxela
@wardxela 15 күн бұрын
That array.filter was so frustrating at the moment. So glad they finally fixed that.
@jesteriruka4215
@jesteriruka4215 18 күн бұрын
The dumb filter intellisense always annoy me, this is the greatest change in a while.
@antonarbus
@antonarbus 17 күн бұрын
finally filter works as expected, thanks for the video 👍
@HtotheG
@HtotheG 18 күн бұрын
Filter type inferences I have been wanting for as long as i have used typescript, especially with JSDoc where you can't directly say Object is Type, I am going to be updating so quickly when this comes out I can't wait
@taragnor
@taragnor 17 күн бұрын
Yeah filter type inference is a gamechanger.
@guai9632
@guai9632 17 күн бұрын
couldn't one just make an extension himself?
@user-ik7rp8qz5g
@user-ik7rp8qz5g 18 күн бұрын
It is why I learnt reduce method. Always bothered me that I had to filter array, then map it, and then add type checks again because it forgets which type it should be.
@prashlovessamosa
@prashlovessamosa 19 күн бұрын
thanks for sharing.
@evanrosz
@evanrosz 16 күн бұрын
Damn, that's so sick. I always wished for this, but wasn't holding my breath- what a nice surprise.
@FernandoMumbach
@FernandoMumbach 16 күн бұрын
I'm so happy to know I won't need `.filter((data): data is Exclude => !!data)` anymore!
@realbigsquid
@realbigsquid 17 күн бұрын
Holy 🐄 I've been figuring these issues a lot lately
@reubenporter9907
@reubenporter9907 19 күн бұрын
Great explanation mate!
@jinushaun
@jinushaun 16 күн бұрын
Nice. I hit this problem all the time.
@Caldaron
@Caldaron 17 күн бұрын
fuck yeah, digestible typescript news, let's go ;-)
@ilonachan
@ilonachan 13 күн бұрын
For the constant index accesses, it seems very helpful, but will that really be okay? Sure the regular indexing won't cause any side effects, but proxies exist! It'd be severe abuse of notation, but theoretically `proxy[key]` needn't return the same value, or even the same type of value both times, right? Will TypeScript be able to understand this, or will we be able to tell it that explicitly somehow? Or is this just broken with no fix?
@guai9632
@guai9632 17 күн бұрын
what if obj[key] return another object the next time you call it after the check?
@yaroslavromanov8357
@yaroslavromanov8357 17 күн бұрын
I have this filter issue ALL the time
@darksinge
@darksinge 17 күн бұрын
Finally, this feature was way overdue.
@guruware8612
@guruware8612 17 күн бұрын
So it got a string instead of a "schtring" - great. And more awesome, typescript finally recognizes types !! Then i bailed out.
@zeteya
@zeteya 17 күн бұрын
Hope it doesn't make typescript slower than it already is.
@imornar
@imornar 18 күн бұрын
Nice showcase ty! Sidenote: you should really put some effort to learn how to properly touch type, its painful to watch
@JollyCoding
@JollyCoding 17 күн бұрын
I actually can, but my current setup uses a wave arm mic which goes right across the centre of my keyboard… Need to get an overhead mic arm!
@mnzrk
@mnzrk 17 күн бұрын
wow a programmer who doesn’t know blind typing? first time for everything, I guess good content though, even if a bit too lengthy
@JollyCoding
@JollyCoding 17 күн бұрын
Someone else mentioned this, it’s more that my mic arm is low profile and goes across the centre of my keyboard so my hands hit it when typing. Need to get an overhead one
@nerdchannel5866
@nerdchannel5866 19 күн бұрын
Do people actually use TypeScript?...
@JollyCoding
@JollyCoding 19 күн бұрын
If you want less headaches from production bugs yeah!
@dharylcarryalmora5414
@dharylcarryalmora5414 19 күн бұрын
Yes we do
@jessequartey
@jessequartey 19 күн бұрын
I can't build a production app without typescript these days. When I think of the future. But we have to do a complete rewrite after a few years
@ExileEditing
@ExileEditing 19 күн бұрын
If you want to build fast and don't care about types then I guess you just go with js but I originally started with C# and enjoy types so I only use typescript.
@gerkim3046
@gerkim3046 19 күн бұрын
is this a joke @nerd
@user-tb4ig7qh9b
@user-tb4ig7qh9b 19 күн бұрын
Please this no DX inhancement that what typescript needs to make from version 1 even php have types better than typescript
@dave-7117
@dave-7117 18 күн бұрын
The Typenscript type system is one of the best existing ones. The limitation here is just JS
@user-tb4ig7qh9b
@user-tb4ig7qh9b 18 күн бұрын
@@dave-7117 i think you just making joke here the typescript type system one of the worst i worked with typescript before be the cool thing todo from angular 2 days and i will tell you even php have better type system maybe it does not have all fancy feature and does not support generic but we need to admit that it catches more bugs and does not be on your way please try do thing in laravel, better compiler and error messages and stack-trace for me is better than type-system
@Dom-zy1qy
@Dom-zy1qy 18 күн бұрын
​@@user-tb4ig7qh9bI think typescript typesystem is pretty nice to work with... wouldn't say it's bad at all
@mnzrk
@mnzrk 17 күн бұрын
@@user-tb4ig7qh9b stop trolling for attention dude, you’ve gotta be better than this
NodeJS 22 Just Dropped, Here's Why I'm Hyped
14:31
Theo - t3․gg
Рет қаралды 83 М.
TypeScript Generics are EASY once you know this
22:21
ByteGrad
Рет қаралды 118 М.
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 30 МЛН
How did CatNap end up in Luca cartoon?🙀
00:16
LOL
Рет қаралды 6 МЛН
Why Does Scrum Make Programmers HATE Coding?
16:14
Healthy Software Developer
Рет қаралды 483 М.
Why Doesn’t Everyone Use This Animation???
23:59
Theo - t3․gg
Рет қаралды 85 М.
SSR React with Go vs Next JS
16:18
Coffee Into Code
Рет қаралды 2,4 М.
Pretty much every website uses the wrong font size…
15:33
Theo - t3․gg
Рет қаралды 57 М.
i changed my mind about zig
9:34
Low Level Learning
Рет қаралды 141 М.
The END of Remix?!? - Huge React Announcement
12:49
Jolly Coding
Рет қаралды 433
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 125 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 158 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 201 М.
This is the FUTURE for User Experience
6:30
Jolly Coding
Рет қаралды 12 М.
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 30 МЛН