Skip to main content
Version: 4.x.x

AdapterType


import { AdapterType } from "@hyper-fetch/core"

Description

Defined in adapter/adapter.types.ts:10

Preview

type AdapterType<AdapterOptions,MethodType,StatusType,Extra,QueryParams> = (request: RequestInstance, requestId: string, DO_NOT_USE?: { extra?: Extra; method?: MethodType; options?: AdapterOptions; queryParams?: QueryParams; status?: StatusType }) => Promise<ResponseReturnType<any, any, any>>;

Structure

(request: RequestInstance, requestId: string, DO_NOT_USE?: [object Object]) => Promise<ResponseReturnType<any, any, any>>