acacode / acacode/swagger-typescript-api

Typescript error with Axios v.1.2.2

未关闭
#477 7 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
4.1k
派生
436
PR 合并指标
30 天内没有已合并 PR

描述

There is a typescript error with axios v.1.2.2

After using `npx swagger-typescript-api --axios -p ./swagger.json -o ./ -n myApi.ts` the following error occurs:
![image](https://user-images.githubusercontent.com/16085957/210394052-2944e66d-00f2-4f4e-a278-abca43391987.png)

After downgrading axios version to 1.2.0 the error disappears.

Tested with typescript version: 2.7.4 && 2.9.4

Thanks for reading, hope to get this issue fixed so future versions of axios will be supported.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。