- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
FRONTEND S07 L02 TypeScript Custom Types, Union Types, and Functions
📘 TYPESCRIPT CUSTOM TYPES, UNION TYPES, AND FUNCTIONS
In this lesson, we continue the TypeScript tutorial by defining custom object types, using union types, and applying type annotations to regular and arrow functions.
You will also see generic functions, a key concept used heavily in modern TypeScript and React code.
🎯 IN THIS VIDEO
Create custom TypeScript object types with required and optional properties
Validate object assignments against custom type definitions
Prevent unexpected properties with strict type checking
Use union types to allow multiple valid type options
Add parameter and return type annotations to regular functions
Add parameter and return type annotations to arrow functions
Use concise conditional return expressions in typed functions
Introduce generic functions and infer concrete types from usage
🚀 HOW TO USE THIS COURSE
This lesson builds the TypeScript language foundation needed for real app code.
Custom types, unions, and generics are all essential when modeling data and writing reusable typed functions in React projects.
👉 Course Website:
www.richardbraycourses.co.uk
👉 Course Repositories:
www.github.com/RichardBrayCourses
👉 Full course playlist:
https://youtube.com/playlist?list=PLNlOxdq7xu14b5ewH4IJC9tMinkgZBuVR&si=Pg8pEDR5UUbQstz6
📂 SECTION REPOSITORY
Section 7 repository:
https://github.com/RichardBrayCourses/frontend07-typescript
💡 NOTE
Generics preserve type information across function inputs and outputs, helping you avoid any while keeping code reusable.
Видео FRONTEND S07 L02 TypeScript Custom Types, Union Types, and Functions канала richardbraycourses
In this lesson, we continue the TypeScript tutorial by defining custom object types, using union types, and applying type annotations to regular and arrow functions.
You will also see generic functions, a key concept used heavily in modern TypeScript and React code.
🎯 IN THIS VIDEO
Create custom TypeScript object types with required and optional properties
Validate object assignments against custom type definitions
Prevent unexpected properties with strict type checking
Use union types to allow multiple valid type options
Add parameter and return type annotations to regular functions
Add parameter and return type annotations to arrow functions
Use concise conditional return expressions in typed functions
Introduce generic functions and infer concrete types from usage
🚀 HOW TO USE THIS COURSE
This lesson builds the TypeScript language foundation needed for real app code.
Custom types, unions, and generics are all essential when modeling data and writing reusable typed functions in React projects.
👉 Course Website:
www.richardbraycourses.co.uk
👉 Course Repositories:
www.github.com/RichardBrayCourses
👉 Full course playlist:
https://youtube.com/playlist?list=PLNlOxdq7xu14b5ewH4IJC9tMinkgZBuVR&si=Pg8pEDR5UUbQstz6
📂 SECTION REPOSITORY
Section 7 repository:
https://github.com/RichardBrayCourses/frontend07-typescript
💡 NOTE
Generics preserve type information across function inputs and outputs, helping you avoid any while keeping code reusable.
Видео FRONTEND S07 L02 TypeScript Custom Types, Union Types, and Functions канала richardbraycourses
Комментарии отсутствуют
Информация о видео
30 апреля 2026 г. 20:00:26
00:06:19
Другие видео канала




















