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.

6 lines 336 B
import type { TypeGuardFn } from "guardz"; /** * Utility function to create a typed safe GET function */ export declare function createTypedSafeGet<T>(guard: TypeGuardFn<T>): (url: string, axiosConfig?: import("axios").AxiosRequestConfig) => Promise<import("..").SafeRequestResult<T>>; //# sourceMappingURL=createTypedSafeGet.d.ts.map