TypeScript Types vs Interfaces - Differences & Use cases

preview_player
Показать описание
If you want to define a type in TypeScript, you have two options to choose from: type alias and interface. Learn their similarities, differences and use cases, so you can make an informed decision about which one should use in your project.

Рекомендации по теме
Комментарии
Автор

Zastanawiałem się nad tym ostatnio ;) dzieki

TheKrisu
Автор

Wow, after Adam, it's time for Marcin :) Respect, and could you to unveil a secret how many tries you did before successful video? :) Regarding interfaces vs types I personally prefer types, because interfaces are for me more similar to classes, but in fact they are good to describe any object - and are a little more faster druing comparison checks. And types for me are similar to variables, but when you go to the project usually you have to just keep actual convention ;)

DomanCode
Автор

Bardzo dobrze mowisz po angielsku (zrozumiale), a przynajmniej ja wszystko rozumiem :D

skeku
Автор

W takich materiałach nie powinniście używać fontów z ligaturami. Może to być skrajnie nieczytelne dla początkującego odbiorcy materiału.

adiospolska
Автор

twoj angielski jest spoko stary nie daj sie nabrac!

buzzer
Автор

moim zdaniem interface powininen być deprecated a potem usunięty w typescripta. Po co on, skoro type'em można zrobić to samo i dużo więcej? Tylko wprowadza niepotrzebną komplikację

luski
Автор

gdyby kazdy z was zostwalil mu lika juz by mial >700 a co, czemu nie ma miec jak przeciez madrze gada...

buzzer