Type alias ResponseSerializer<TResult>

ResponseSerializer<TResult>: ((result, request, response) => any)

Type Parameters

  • TResult extends any = any

Type declaration

    • (result, request, response): any
    • A function, that serializes something for the response and sends it.

      Parameters

      • result: TResult

        The result to serialize.

      • request: IHttpRequest

        The request context.

      • response: IHttpResponse

        The response context.

      Returns any

Generated using TypeDoc