acacode / acacode/swagger-typescript-api

Typescript error with Axios v.1.2.2

Aperta
#477 7 commenti 4 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.