@tonyptang/request
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published
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)

Readme

Keywords

Package Sidebar

Install

npm i @tonyptang/request

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

12.4 kB

Total Files

5

Last publish

Collaborators

  • tonyptang