Skip to content

JarvisArt/ts-axios

Repository files navigation

ts-axios

使用 TypeScript 实现 axios

安装

$ npm install ts-axios-jarvis

使用方法

import axios from 'ts-axios-jarvis';

axios.get('https://yesno.wtf/api')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

API与axios相似,更多API请参考 https://github.com/axios/axios

About

使用 TypeScript 实现 axios

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published