← Code LabTypeScript0/50 solved · 0%
Generics · hard

39. The infer Keyword

Extracting types within conditional expressions.

Write `UnwrapPromise<T>` that gets `U` from `Promise<U>`.
Required in your answer: infer U