@tonyptang/request
v0.1.0
Published
```ts import { useRequest } from '@tonyptang/request'
Downloads
2
Readme
import { useRequest } from '@tonyptang/request'
const {
instance: axiosInstance,
get,
del,
head,
options,
post,
put,
patch,
purge
} = useRequest({} /* AxiosConfig */, {} /* transformKey config */)
get(``, AxiosConfig, transformKeyConfig)
axiosInstance.interceptors.request.use(c => c)