npm i swagger-codegen-openapi -D
yarn add swagger-codegen-openapi -D
Add this to your scripts and execute generate:api
whenever you need to generate APIs
"generate:api" : "generate-api -i swaggerUrl -g typescript-axios"
Read more about how to use it in our documentation.