fx-flow v0.7.0 / utils / call
Function: call()
call<
A
,F
>(args
,fn
):A
extendsPromise
<unknown
> ?FixedPromise
<ReturnType
<F
>> :ReturnType
<F
>
Type parameters
• A
• F extends (args
) => any
Parameters
• args: A
• fn: F
Returns
A
extends Promise
<unknown
> ? FixedPromise
<ReturnType
<F
>> : ReturnType
<F
>