UNPKG

@zayne-labs/callapi

Version:

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

30 lines (29 loc) 1.18 kB
import { n as fallBackRouteSchemaKey, r as fetchSpecificKeys, t as FallBackRouteSchemaKey } from "../validation-Do6HBp6Z.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"; 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