Function asyncRecipe

  • Converts asynchronous value recipe to its evaluator function.

    Type Parameters

    • TValue

      Evaluated value type. This can not be a function.

    • TArgs extends unknown[]

      A type of parameters tuple required for value evaluation.

    Parameters

    • recipe: AsyncRecipe<TValue, TArgs>

      Asynchronous value recipe to convert.

    Returns ((this, ...args) => Promise<TValue>)

    A function asynchronously evaluating the value.

      • (this, ...args): Promise<TValue>
      • Parameters

        • this: void
        • Rest ...args: TArgs

        Returns Promise<TValue>

Generated using TypeDoc