TypeScript Course || 6 Type Narrowing Techniques #typescript

preview_player
Показать описание
Learn about Narrowing(Type Narrowing) from this video. We will discuss 6 ways to achieve Type Narrowing in TypeScript, with plenty of examples.

1) Narrowing: The "typeof" guard
2) Narrowing: With "Equality" operator
3) Narrowing: With "in" operator
4) Narrowing: The "instanceof" guard
5) Narrowing: With "Type Predicate" Function
6) Narrowing: "Discriminated Unions"

Not only that, we will also learn the elaborative use cases of concepts like Type Predicates and Discriminated Unions.

Welcome to 'TypeScript With tapaScript". Here is the fifth video to help you to get started with TypeScript. I hope you are liking the TypeScript course, and enjoy going through it.

I take special care to provide you the best quality. Please SUBSCRIBE to the channel to show your support. Also, could you like/comment on this video so that it reaches others? Thanks! 🫶

Timecodes
0:00 - Introduction to Narrowing
00:20- Type Narrowing
03:30 - Narrowing Techniques
04:52 - Narrowing: The "typeof" guard
07:05 - Narrowing: typeof and truthiness
11:27 - Narrowing: With "Equality" operator
14:16 - Narrowing: With "in" operator
16:31 - Narrowing: The "instanceof" guard
22:12 - Type Predicate
25:59 - Narrowing: With "Type Predicate" Function
27:05 - Type Predicate use case
32:17 - Discriminated Unions
34:25 - Type Discriminant
35:33 - Narrowing: "Discriminated Unions"
37:54 - The End Notes

## Follow tapaScript on GitHub

## Join tapaScript Discord

## Source Code Repository:

## The Prototype Video:

## 🤝 My Links:

## 👋 Like my work? Thank You. You can sponsor me from here:

## About Me:
Tapas Adhikary is an Educator at tapaScript, Tech enthusiast, Writer, YouTuber, and Open Source projects maintainer/contributor. He is a full-stack developer who has vast experience in building SaaS solutions. He is the founder of the ReactPlay platform, which is driven by open-source projects and a fast-growing community.

#typescript
#typescriptdevelopment
#typescripttutorial
#learntypescript
#typescriptcourse
#javascript
#softwaredeveloper
#softwaredevelopment
#webdevelopment
#webdeveloper
Рекомендации по теме
Комментарии
Автор

TS and JSX would amazing. I know its hardword making these vids. Thanks you!

lawrencemcconneughey
Автор

Thank you. Waiting for Generics and remaining stuffs.

MrAdithramesh
Автор

this series is also awesome!!
hope to have more on TypeScript like Generic and maybe with React in the future XD

anyway, big big big thx from Taiwan for all the awesome series
they help me a lot when i was in any technical interview

really, ive compared the content with other YTbers,
tapaScript is the best !!

cover all the keywords, content, and make it so so clear,
and u do NOT need to search for sth. that is explained fuzzy by urself
all u need to do is just stick to the videos and then u would be a master a interview
// of course u need a lot of practice and make sure u really understand it so that all the concept can go into ur mental model

huge thx tapaScript!! really !!

Robert-xrbh