Type alias RequestHandlerMethod<TThis, TMeans>

RequestHandlerMethod<TThis, TMeans>: ((this, context) => PromiseLike<unknown> | void)

Type Parameters

  • TThis

    A type of this object.

  • TMeans

    A type of request processing means this handler expects.

Type declaration

    • (this, context): PromiseLike<unknown> | void
    • Request processing method signature.

      This is a request handler that requires a this object.

      Parameters

      • this: TThis
      • context: RequestContext<TMeans>

        Request processing context containing the necessary means.

      Returns PromiseLike<unknown> | void

      Either nothing if the handler completed its work synchronously, or a promise-like instance resolved when the handler completed its work asynchronously.

Generated using TypeDoc