Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

In TypeScript, interfaces and types are often interchangeable. But these are 6 features that only work with a type alias. Clip from "TypeScript: Getting Started" on Dometrain

56,130 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Cory House profil fotoğrafı
Cory House1 yıl önce

Full course with a 20% discount:

Tymek Zapała profil fotoğrafı
Tymek Zapała1 yıl önce

Types are great. I do not see any reason to use interfaces - they have less use cases and brings risk of accidental declaration merging to codebase.

Ryu profil fotoğrafı
Ryu1 yıl önce

Seriously most of what I know about typescript I learned from you and @mattpocockuk

Cory House profil fotoğrafı
Cory House1 yıl önce

@mattpocockuk Thanks! And yep Matt is a fantastic teacher

tom byrer profil fotoğrafı
tom byrer1 yıl önce

The thing I hate about TS is that is lots of programming time that is not programming that significantly moves the needle forward. I hope @typescript team will add auto-typing in Phase 3 of their GoLang transition, or some AI wiz makes a small locally hostable model to do this.

Cory House profil fotoğrafı
Cory House1 yıl önce

@typescript I find adding types takes little time and tends to “flow” through the code once I’ve delivered the type once. Often mainly need types for the json fetched from APIs

ℤ profil fotoğrafı
1 yıl önce

1:19 seconds of 🔥🔥🔥

Cory House profil fotoğrafı
Cory House1 yıl önce

Thanks!

Friedrich profil fotoğrafı
Friedrich1 yıl önce

That's why I only use types. There is also interfaces merging that can be misleading

Juan Roa profil fotoğrafı
Juan Roa1 yıl önce

Great tips for such commons workarounds while working with TS!

Benzer Videolar