Interface FfetchAddon<RequestMixin, ResponseMixin>

interface FfetchAddon<RequestMixin extends object, ResponseMixin extends object> {
    beforeRequest?: (ctx: FetchAddonCtx<RequestMixin>) => void;
    response?: ResponseMixin;
}

Type Parameters

  • RequestMixin extends object
  • ResponseMixin extends object

Properties

beforeRequest?: (ctx: FetchAddonCtx<RequestMixin>) => void

function that will be called before each request

response?: ResponseMixin

mixin functions that will be added to the response promise