@thingts/execution - v1.0.0
    Preparing search index...

    Type Alias PromisifiedFunction<T>

    PromisifiedFunction: (...args: Parameters<T>) => PromisifyReturn<T>

    Given a function fn: T, this is the shape of the the wrapped function:

    • It has the same parameters as fn.
    • It returns fn's eventual value as a Promise. That is: if fn returns a Promise, the new function returns the same type of Promise; if fn returns a non-Promise type, the new function returns a Promise resolving to that type.

    Type Parameters

    • T extends AnyFunction

    Type Declaration

      • (...args: Parameters<T>): PromisifyReturn<T>
      • Parameters

        • ...args: Parameters<T>

        Returns PromisifyReturn<T>