Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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,133 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Cory House
Cory Housevor 1 Jahr

Full course with a 20% discount:

Profilbild von Tymek Zapała
Tymek Zapałavor 1 Jahr

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.

Profilbild von Ryu
Ryuvor 1 Jahr

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

Profilbild von Cory House
Cory Housevor 1 Jahr

@mattpocockuk Thanks! And yep Matt is a fantastic teacher

Profilbild von tom byrer
tom byrervor 1 Jahr

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.

Profilbild von Cory House
Cory Housevor 1 Jahr

@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

Profilbild von ℤ
vor 1 Jahr

1:19 seconds of 🔥🔥🔥

Profilbild von Cory House
Cory Housevor 1 Jahr

Thanks!

Profilbild von Friedrich
Friedrichvor 1 Jahr

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

Profilbild von Juan Roa
Juan Roavor 1 Jahr

Great tips for such commons workarounds while working with TS!

Ähnliche Videos