Creating Plot Twists
Plot
GitHub
NPM
Preparing search index...
utils/types
PromiseValues
Type Alias PromiseValues<T>
PromiseValues
:
{
[
K
in
keyof
T
]
:
T
[
K
]
extends
Promise
<
infer
U
>
?
U
:
T
[
K
]
}
Unwraps Promise types to their resolved values. Converts { foo: Promise
} to { foo: string }
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Plot
GitHub
NPM
Creating Plot Twists
Loading...
Unwraps Promise types to their resolved values. Converts { foo: Promise } to { foo: string }