import { type DefaultError } from "@tanstack/react-query";
import { type IBaseResponse } from "./response.types";

interface IError {
  message: string[];
}

export interface IErrorResponse extends IBaseResponse {
  error: IError;
}

export interface IApiErrorRepsonse extends DefaultError {
  response?: IErrorResponse;
}
