Тёмный

Avoid These Typescript Mistakes 

developedbyed
Подписаться 939 тыс.
Просмотров 10 тыс.
50% 1

💖 Show your support by checking out my courses!
developedbyed.com
-------------------------------------------------------------------------------------------------
Wohoo typescript! Let's talk about how typescript and it's typechecking. What happens at runtime and some common pitfalls devs might run into.
-------------------------------------------------------------------------------------------------
👨‍💻Connect with me
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/dev...
-------------------------------------------------------------------------------------------------
🎶 Dope music
C Y G N - Bikini Palm-trees chll.to/d0798a7f
C Y G N - Emotions chll.to/bfeb2b66
C Y G N - Let it go chll.to/41ba6c49
#programming #javascript #typescript

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@developedbyed
@developedbyed Год назад
More Typescript? 👀
@mrinaltewary
@mrinaltewary Год назад
Yeah more
@JohnRodDondoyano
@JohnRodDondoyano Год назад
I would be so super happy if you use one of my covers as your bg music while teaching us of more typescript.
@Dazeyy
@Dazeyy Год назад
I want much more.
@holiqibrahim
@holiqibrahim Год назад
Yeah bro, I need it more
@phaneendra777
@phaneendra777 Год назад
Sure agre Ed😁
@serpercody5347
@serpercody5347 Год назад
Great video as always Ed. Honestly you could make a video just talking about anything and I would still watch it, can't wait for more typescript from you.
@dotpenji
@dotpenji Год назад
Great job explaining TypeScript concepts! How do you recommend handling API response type inconsistencies to avoid runtime issues?
@motivatedbeastph
@motivatedbeastph Год назад
informative content though!
@anonymoussloth6687
@anonymoussloth6687 Год назад
But why does that first error not get resolved with instanceof? Doesn't typescript have type narrowing?
@mantas9827
@mantas9827 11 месяцев назад
Because enemy is an interface not a class. TypeScript interfaces only exist during compile-time for type checking, and they are not present in the resulting JavaScript code after compilation. In the compiled JavaScript, Enemy is not defined, so the instanceof check fails. So to put simply enemy is not a real thing when the code runs, it's just a helpful idea while writing code and therefore the runtime check fails, while in the 'power' in stranger example it's a valid runtime check so everything works.
@Se7en7upp
@Se7en7upp Год назад
hey ed, do you have a typescript course ? a video about it ? Thanks for your amazing work !
@sparshtiwari5485
@sparshtiwari5485 Год назад
Isn't Svelte and more frameworks switching back to Vanilla JS just because of the complexity that TS has????
@firen777
@firen777 Год назад
Svelte ditches typescript because they don't want the extra compilation and build step. However, they have plenty of JSDoc typing, which contains most of the Typescript linting/type checking benefits, as well as allowing Typescript use to keep using the framework with no issues. Turbo 8 did it because the author think being a contrarian is a sign of smartness and flipping off contributors is based.
@yajirushik2871
@yajirushik2871 Год назад
copyScript, the world's most advanced programming language which is included in every single of created and already will be with any created in future.
@alasassi5889
@alasassi5889 Год назад
Do you think AI will replace developers.(be honest 🙂)
@vatsalyasinghi438
@vatsalyasinghi438 Год назад
Hi, video series on Bun ??
@thiscris_
@thiscris_ Год назад
Font and theme, please?
@AleksanderGjinollari
@AleksanderGjinollari Год назад
i think the theme is "community material theme ocean high contrast"
@MrKasoa
@MrKasoa Год назад
Current trend : just avoid TypeScript 😂😂
@manishsawlani363
@manishsawlani363 Год назад
Which theme is that?
@AleksanderGjinollari
@AleksanderGjinollari Год назад
I think it's "community material theme ocean high contrast"
@okosunfamily1081
@okosunfamily1081 Год назад
I'm the first dev
@Mecagothits
@Mecagothits 4 месяца назад
😂
@MyDpop
@MyDpop Год назад
I miss the magic trick 🪄 you used to do 🧙‍♂
Далее
Enums considered harmful
9:23
Просмотров 206 тыс.
Новая BMW 5 провал за 10 млн! ИЛИ?..
32:07
Brilliant Budget-Friendly Tips for Car Painting!
00:28
My Favorite TypeScript Tips and Tricks
10:21
Просмотров 7 тыс.
TypeScript Generics are EASY once you know this
22:21
Просмотров 137 тыс.
The TypeScript feature I never use
10:49
Просмотров 11 тыс.
Why Signals Are Better Than React Hooks
16:30
Просмотров 477 тыс.
Why use Type and not Interface in TypeScript
14:12
Просмотров 207 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 960 тыс.
7 Awesome TypeScript Types You Should Know
8:57
Просмотров 84 тыс.
Learn Typescript with React | Quick Crash Course
16:59