UNPKG

guardz-axios

Version:

Type-safe HTTP client built on top of Axios with runtime validation using guardz. Part of the guardz ecosystem for comprehensive TypeScript type safety.

16 lines 532 B
import type { AxiosInstance } from "axios"; import type { RetryConfig } from "./RetryConfig"; import type { ErrorContext } from "./ErrorContext"; /** * Configuration for SafeApiContext */ export interface SafeApiContextConfig { baseURL?: string; timeout?: number; headers?: Record<string, string>; defaultTolerance?: boolean; defaultRetry?: RetryConfig; onTypeMismatch?: (error: string, context: ErrorContext) => void; axiosInstance?: AxiosInstance; } //# sourceMappingURL=SafeApiContextConfig.d.ts.map