//response obtained from the function
interface fetchResponse {
  ok: boolean;
  completed: boolean;
  body: fetchResponseBody;
}
//possible bodies in the response
type fetchResponseBody = bodyMessage | unknown;
//message body for empty or failed responses
interface bodyMessage {
  message: string;
}
interface fetchOps {
  noAuth?: boolean;
  contentType?: string;
  return?: string;
}

export { fetchResponse, fetchOps };
