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 351 B
import type { TypeGuardFn } from "guardz"; /** * Utility function to create a typed safe POST function */ export declare function createTypedSafePost<T>(guard: TypeGuardFn<T>): (url: string, data?: any, axiosConfig?: import("axios").AxiosRequestConfig) => Promise<import("..").SafeRequestResult<T>>; //# sourceMappingURL=createTypedSafePost.d.ts.map