export function makeRequest<T>({
method = "GET",
route,
schema,
options,
customHeaders = {},
body,
}: {
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
route: string;
schema: Schema.Schema<any>;
options?: AllOptions;
customHeaders?: Record<string, string>;
body?: string;
}): Effect.Effect<T, ApiError, AuthService> {
export function makeRequest<T>({
method = "GET",
route,
schema,
options,
customHeaders = {},
body,
}: {
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
route: string;
schema: Schema.Schema<any>;
options?: AllOptions;
customHeaders?: Record<string, string>;
body?: string;
}): Effect.Effect<T, ApiError, AuthService> {