Skip to content
Medium
Conditional + infer

Infer Promise inner

Create a utility UnwrapPromise<T> that extracts the fulfilled type of Promise<T>, leaving non-promises untouched.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.