ghaiklor / type-challenges-solutions

Solutions for the collection of TypeScript type challenges with explanations
https://ghaiklor.github.io/type-challenges-solutions/
Creative Commons Attribution 4.0 International
471 stars 56 forks source link

type-challenges-solutions/ru/easy-awaited #344

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

Awaited

This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.

https://ghaiklor.github.io/type-challenges-solutions/ru/easy-awaited.html

9922221 commented 1 month ago

ну так ты не дорешал type MyAwaited = T extends Promise ? R extends Promise ? U extends Promise ? K : U : R : T;