Why use Type and not Interface in TypeScript

Why use Type and not Interface in TypeScript

224.713 Lượt nghe
Why use Type and not Interface in TypeScript
👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). 👉 Add authentication to your app FAST: https://bit.ly/3QOe1Bh 👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs 👉 Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript 👉 Professional CSS Course: https://bytegrad.com/courses/professional-css 👉 Discord: all my courses have a private Discord where I actively participate 🔔 Email newsletter (BIG update soon): https://email.bytegrad.com ⏱️ Timestamps: 0:00 Type Alias vs Interface 2:05 Interface problem 1 3:15 Interface problem 2 4:05 Interface problem 3 5:39 Interface problem 4 6:49 Consideration 7:34 Interface problem 5 9:41 Interface problem 6 11:49 Classes 12:33 Best arguments! 12:47 Arguments pro interface #typescript #typescripttutorial Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 . . TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)