Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.97 KB

README.md

File metadata and controls

15 lines (9 loc) · 1.97 KB

Awaited easy #promise #built-in

by Maciej Sikora @maciejsikora

Take the Challenge    简体中文 日本語 한국어

If we have a type which is wrapped type like Promise. How we can get a type which is inside the wrapped type?

For example: if we have Promise<ExampleType> how to get ExampleType?

type ExampleType = Promise<string>

type Result = MyAwaited<ExampleType> // string

This question is ported from the original article by @maciejsikora


Back Share your Solutions Check out Solutions