UNPKG

@zayne-labs/callapi

Version:

A lightweight wrapper over fetch with quality of life improvements like built-in request cancellation, retries, interceptors and more

31 lines (30 loc) 1.24 kB
import { H as fallBackRouteSchemaKey, V as FallBackRouteSchemaKey, X as RequestContext, at as fetchSpecificKeys } from "../index-CzrxZYrH.js"; //#region src/constants/defaults.d.ts declare const extraOptionDefaults: Readonly<Readonly<{ bodySerializer: { (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (number | string)[] | null, space?: string | number): string; }; defaultHTTPErrorMessage: string; dedupeCacheScope: "local"; dedupeKey: (ctx: RequestContext) => string; dedupeCacheScopeKey: "default"; dedupeStrategy: "cancel"; hooksExecutionMode: "parallel"; responseParser: (text: string, reviver?: (this: any, key: string, value: any) => any) => any; responseType: "json"; resultMode: "all"; retryAttempts: number; retryCondition: () => true; retryDelay: number; retryMaxDelay: number; retryMethods: ("GET" | "POST")[]; retryStatusCodes: never[]; retryStrategy: "linear"; }>>; declare const requestOptionDefaults: Readonly<{ method: "GET"; }>; //#endregion export { FallBackRouteSchemaKey, extraOptionDefaults, fallBackRouteSchemaKey, fetchSpecificKeys, requestOptionDefaults }; //# sourceMappingURL=index.d.ts.map