Skip to content

fx-flow v0.7.0 / utils / call

Function: call()

call<A, F>(args, fn): A extends Promise<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>

Source

packages/core/src/utils.ts:28

Released under the MIT License.