Conditional Types - Advanced TypeScript
Автор: Dmytro Danylov
Загружено: 2020-04-13
Просмотров: 39966
A conditional type (T extends U ? X : Y) in TypeScript selects one of two possible types based on some condition.
👨🏫 Take a QUIZ to solidify the information you've got from this video:
https://dd.engineering/quiz/FuLTCD8u-7X_
Table of Contents:
00:05 Conditional type definition
00:55 A basic example
01:57 Deferred evaluation of a conditional type
05:22 Nested expression
06:19 Distributive conditional types and using a conditional type with the "never" type for filtering union types
11:40 When a conditional type is not distributive
15:38 Type inference in conditional types
22:36 Other utility types which use a conditional type
👨💻 My Udemy Course:
Using TypeScript with React
https://www.udemy.com/course/react-wi...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: