import { Method } from '../../enums'; import { AnyRecord } from '../../types'; import { z, ZodSchema } from 'zod'; /** * Expect {@link Method.GET} and {@link Method.DELETE} to not have a body. */ export interface IFetcher {
(params: { url: string; method: typeof Method.POST | typeof Method.PUT | typeof Method.PATCH; body?: TBody; headers?: RequestInit['headers']; options?: Omit