downlevel-dts icon indicating copy to clipboard operation
downlevel-dts copied to clipboard

Downlevel Awaited

Open Newbie012 opened this issue 3 years ago • 1 comments

Typescript 4.5 has introduced the Awaited type, which recursively extracts the value inside a promise.

Newbie012 avatar Jun 22 '22 07:06 Newbie012

After some research, I discovered that this syntax uses Recursive Conditional Types which were introduced in version 4.1. Thus, it won't work for versions that are lower than 4.1.

I'm not sure how to proceed from here. Thoughts?

Newbie012 avatar Jun 22 '22 10:06 Newbie012