@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.25 kB
TypeScript
import { G as FallBackRouteSchemaKey, K as fallBackRouteSchemaKey, et as RequestContext, lt as fetchSpecificKeys } from "../index-CCyp1Rmr.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<Readonly<{
method: "GET";
}>>;
//#endregion
export { FallBackRouteSchemaKey, extraOptionDefaults, fallBackRouteSchemaKey, fetchSpecificKeys, requestOptionDefaults };
//# sourceMappingURL=index.d.ts.map