使用TypeScript重构axios,100%还原axios的所有方法
git clone https://github.com/RimingXie/ts-axios.git
cd ts-axios
# Run npm install and write your library name when asked. That's all!
npm install
English | 简体中文This is the repository for the Chatbox Community Edition, open-sourced under the GPLv3 license. For most users, I recommend using the Chatbox Official Edition (closed-source). It's still completely free, easy to install, and supports more of the latest features. You can get it below:D
这是一个 Vite 插件,旨在自动化管理和规范化 API 接口。它能够自动扫描指定目录下的 API 文件,生成类型声明和虚拟模块,从而让用户更优雅地管理和使用 API。
项目特性
自动组织 API:按目录结构自动组织 API。
生成类型声明:自动生成 TypeScript 类型声明。
自定义模板:支持自定义 API 模板。
开发时热更新:开发过程中支持热更新。
类型提示:提供完整的类型提示。