1.0.3 • Published 4 years ago

power-ts-axios v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

power-ts-axios

rebuild axios by TypeScript

使用方法

The power-ts-axios method is the same as axios, it can only be used on the client and not on the node backend.

install

npm i power-ts-axios --save
    import axios from "power-ts-axios"

    axios({
      method: 'post',
      url: '/base/post',
      responseType: 'json',
      data: {
        a: 1,
        b: 2
      }
    }).then((res) => {
      console.log(res);
    });
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago