TypeScript / Lesson 25. Utility Types. ReturnType

Опубликовано: 11 Сентябрь 2026
на канале: Игорь Антонов — про JavaScript и разработку
926
69

In this lesson, we'll discuss helper types. All available helper types are listed in the TypeScript documentation section of the same name — https://www.typescriptlang.org/docs/h.... There are many of them, so we'll cover them gradually. Let's start with ReturnType.

ReturnType is a helper type. It allows you to extract the type of the value returned by a function. We'll explore how to use it in practice in this video.

Contents:

00:00 Introduction
01:13 What are helper types
03:24 ReturnType
03:59 Practice
09:26 Summary

Useful links:

ReturnType in the documentation — https://www.typescriptlang.org/docs/h...
My blog on Telegram — https://t.me/antonovjs