filmov
tv
Type Assertions & Type Casting | Typescript Tutorial for Beginners
![preview_player](https://i.ytimg.com/vi/Sj1425gwXxQ/maxresdefault.jpg)
Показать описание
Learn Type Assertions & Type Casting in this Typescript tutorial for beginners. Learn more about type assertions and type casting and complete a Typescript student challenge in detailed TS tutorial.
🚀 Become a full-stack web dev with Zero To Mastery Courses:
👇 Follow Me On Social Media:
Type Assertions & Type Casting | Typescript Tutorial for Beginners
(00:00) Intro
(00:05) Welcome
(00:28) Type Assertions vs Type Casting
(01:18) What are Type Assertions?
(01:58) Starter Code
(03:44) Converting Types with Assertions
(04:53) Angle Bracket Syntax instead of "as"
(05:55) Narrowing Return Values with Assertions
(08:37) Caution: Assertions allow mistakes!
(10:07) Double Casting and the unknown type
(12:03) DOM Selection Types
(16:19) Non-Null Assertions
(17:43) Angle Brackets and the DOM
(18:14) Student Challenge
(21:27) Solution 1: Beginners
(24:13) Solution 2: Type Assertion
Corrections:
📚 Suggested Pre-requisites for this Typescript course:
📚 Tutorial References:
⚙ Web Dev Tools:
Was this Typescript Assertions and Type Casting tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#typescript #assertions #casting
Комментарии