Тёмный

Advanced Typescript - Common errors, utility types and unknown vs any 

Kevin Beltrão
Подписаться 1,8 тыс.
Просмотров 102
50% 1

Code: github.com/KevBeltrao/typescr...
/ kevbeltrao
Docs for utility types: www.typescriptlang.org/docs/h...
Welcome to our deep dive into Advanced TypeScript, where we tackle Common Errors, Utility Types, and the crucial distinctions between 'unknown' vs 'any'. This tutorial is tailored for intermediate to advanced TypeScript developers looking to enhance their code quality and debug skills effectively.
In this video, we'll explore:
Utility Types: Learn how to leverage TypeScript's built-in utility types to write more robust and maintainable code.
unknown vs any: Understand when to use 'unknown' instead of 'any' to ensure type safety in your projects.
Common Errors: We'll identify frequent TypeScript errors and show you how to avoid them, saving you hours of debugging.
By the end of this session, you'll have a solid understanding of some of the more nuanced aspects of TypeScript, enabling you to write cleaner, more efficient code. Whether you're looking to refine your skills or avoid common pitfalls, this video is your go-to resource for advanced TypeScript techniques.
Don't forget to hit like, subscribe, and turn on notifications for more advanced tutorials like this one. Drop your questions or topics you want covered in future videos in the comments below!
00:00 - Intro
01:47 - Utility Types
06:47 - Unknown vs any
10:30 - Possibly null or undefined
13:40 - Incompatible types
18:42 - Catch errors
23:10 - Outro

Наука

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

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@thaisaelvas
@thaisaelvas 2 месяца назад
The best tech content creator is baaack 🎉
@deborah8046
@deborah8046 2 месяца назад
Awesome!!
@GuilhermeBoaviagem
@GuilhermeBoaviagem 2 месяца назад
Clear and informative. Man, I had no idea typescript had so many ways to enforce rules into the code. It makes python look clumsy and naive hahaha (but I bet it's hard to train and deploy an xgboost model in TS huh).
@KevBeltrao
@KevBeltrao 2 месяца назад
Hahaha, they have their own strengths. Python's ability to work with vectorization and the leaner syntax make it an awesome tool for data science. But I definitely agree that Python would benefit from types.
Далее
Advanced TypeScript - Generics
24:37
Просмотров 45
The Most Impressive Basketball Moments!
00:36
Просмотров 6 млн
Incredible magic 🤯✨
00:53
Просмотров 15 млн
React useEffect - Complete Guide
15:14
Просмотров 56
Como fazer modal com HTML + CSS + JS com animações!
17:43
Atualização React Router 6 (o que mudou?)
24:04
Просмотров 2 тыс.
PA-RISC рабочая станция HP Visualize
41:27