1.1.0 • Published 2 years ago
@chaos1ee/axios v1.1.0
@chaos1ee/axios
Superset of axios.
Easier to set the return type of axios requests
Example:
interface ResponseType {
foo: string
}
Before
axios.get<unknown, ResponseType>('/something')
After
axios.get<ResponseType>('/something')
Install
yarn add @chaos1ee/axios
Usage
import axios from '@chaos1ee/axios'
axios.get<ResponseType>('/something')