0.0.2 • Published 3 years ago

ts-axios-yjx v0.0.2

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

ts-axios

构建方式

基于typescript-library-starter构建

目录结构

  dist                              // 项目打包目录
  example                           // 测试实例
  src
    core                            // 核心函数/类
      Axios.ts                      // axios函数上的方法
      dispatchRequest.ts            // 基于xhr.ts的数据请求方法
      xhr.ts                        // XMLHttpRequest
    helpers                         // 辅助函数
      data.ts                       // 处理axios config.data以及response.data
      header.ts                     // 处理axios config.headers以及response.headres
      url.ts                        // 处理axios config.url
      util.ts                       // 通用工具函数
    types                           // interface
      index.ts
    index.ts                        // 出口
    axios.ts                        // axios工厂函数,混合axios函数以及上面的方法
  test
  tools