UNPKG

use-axios-http-requests-ts

Version:

Incredibly useful package for making HTTP requests! This package eliminates the need for the Fetch API and is built on top of the powerful library [axios](https://www.npmjs.com/package/axios).

11 lines (10 loc) 238 B
export type OptionsType = { method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; params?: Object; headers?: Object; }; export type ErrorType = { status?: number; message: string; }; export type AxiosApiResponse = {};