acacode / acacode/swagger-typescript-api

Typescript error with Axios v.1.2.2

Open
#477 7 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.