Type alias Evaluator<TValue, TArgs>

Evaluator<out TValue, in TArgs>: ((this, ...args) => TValue | PromiseLike<TValue>)

Type Parameters

  • out TValue

    Evaluated value type. This can not be a function.

  • in TArgs extends unknown[] = []

    A type of parameters tuple required for value evaluation.

Type declaration

    • (this, ...args): TValue | PromiseLike<TValue>
    • Asynchronous value evaluator signature.

      Parameters

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

        Parameters required for value evaluation.

      Returns TValue | PromiseLike<TValue>

      Either an valuated value, or a promise-like instance resolving to one.

Generated using TypeDoc