MiddlewareResponse<T>: {
    body: T;
    error?: HttpErrorType;
    headers?: Record<string, any>;
    reject: Function;
    request?: MiddlewareRequest;
    resolve: Function;
    statusCode: number;
}

Type Parameters

  • T = unknown

Type declaration

  • body: T
  • Optional error?: HttpErrorType
  • Optional headers?: Record<string, any>
  • reject: Function
  • Optional request?: MiddlewareRequest
  • resolve: Function
  • statusCode: number