UNPKG

@ritttzy/core

Version:

## Project setup ``` npm install ```

20 lines (18 loc) 425 B
//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 };