Загрузка страницы

Conditional Types - Advanced TypeScript

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-with-typescript/?referralCode=1816455EA4C12F9CA9F4

Видео Conditional Types - Advanced TypeScript канала Dmytro Danylov
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
14 апреля 2020 г. 10:54:16
00:23:10
Яндекс.Метрика