Type Utils
Preparing search index...
Experimental
Async
Type Alias Async<T>
Async
:
T
extends
Promise
<
any
>
?
T
:
T
extends
Func
<
infer
Params
,
infer
RT
>
?
RT
extends
Promise
<
infer
WrappedType
>
?
AsyncFunc
<
Params
,
WrappedType
>
:
AsyncFunc
<
Params
,
RT
>
:
Promise
<
T
>
wraps an value in a Promise or the return value of a function
Type Parameters
T
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Type Utils
Loading...
wraps an value in a Promise or the return value of a function