This typescript keyword can catch lots of possible errors #shorts

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I feel like this should’ve been inferred implicitly.

ogreeni
Автор

OMG I keep running into this issue. Tqsm for sharing this!

mche_
Автор

I always used generics for this and didn't know about that keyword, thanks!

shadowplay
Автор

Best explanation out there about the satisfies keyword

MaxProgramming
Автор

I literally didn't understand the necessity of a tolowercase property for a shape. Why will we need to change the the string if it's just a colour?😮😮

Techi-TrailBlazer
Автор

Nice video! I'm curious why didn't TypeScript just improve the way we type an object instead of introducing a new keyword? Were there any official discussions I can read up?

jmaicaaan
Автор

So in order to fix a bug in the IDE you introduce an indirection that the compiler can’t optimize?

fgualazzi
Автор

Why they don't have this by default?

nested
Автор

If oval shape has color string and rect shape has color number, I think its better to use discriminated union

devchines
Автор

If use Webstorm, no need overhinking about this kind of situation...

eduardtoma
Автор

cool what is the theme you are using ?😅

vibestation
Автор

Don't get me wrong but if you have to change your code to help intellisense do the most basic things ever then maybe either switch language or use a better IDE/editor

zeez
Автор

Why do you define a type instead of an interface?

harryhack
Автор

Huh i thought that type-narrowing would have inferred the type of the color already

vikingthedude
Автор

Whats your code theme please I've looking for 2 years

wioniqle.q
Автор

Is this only in a certain version of typescript

ChillAutos
Автор

What is the name of the plugin that shows the result in vscode (identifier expected)

mostafahamdy
Автор

Does 'as Shape' work too?
Or only satisfies work for it?

saxprophet
Автор

No one commenting on how funny he pronounce the word 'string'?

Tijdperkzuid
Автор

Can you pronounce it intelliecents next time

UbuntuBanksie