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.

13 lines 297 B
import { Status } from "../../types/status-types"; /** * Result type for safe axios requests */ export type SafeRequestResult<T> = { status: Status.SUCCESS; data: T; } | { status: Status.ERROR; code: number; message: string; }; //# sourceMappingURL=SafeRequestResult.d.ts.map