Options
All
  • Public
  • Public/Protected
  • All
Menu

The default HandlesApiResponse implementation used by upfrontjs.

link

{HandlesApiResponse}

Hierarchy

  • ApiResponseHandler

Implements

Index

Constructors

Methods

  • handle<T>(promise: Promise<ApiResponse<null | string | any[] | Record<string, any>> & { request: { method: "HEAD" | "head" } }>): Promise<undefined | Omit<ApiResponse<null | string | any[] | Record<string, any>>, "data" | "json">>
  • handle<T>(promise: Promise<ApiResponse<T>>): Promise<undefined | T>
  • handleError(rejectReason: unknown): Promise<never>
  • handleFinally(): void
  • handleResponse(response: ApiResponse<null | string | any[] | Record<string, any>> & { request: { method: "HEAD" | "head" } }): Promise<undefined | Omit<ApiResponse<null | string | any[] | Record<string, any>>, "data" | "json">>
  • handleResponse<T>(response: ApiResponse<T>): Promise<undefined | T>

Generated using TypeDoc