Installation
Install the generator and its peer dependencies.
Install swagger-to-tanstack-query as a dev dependency, then make sure its peer
dependencies are present in your app.
Install the generator
npm install -D swagger-to-tanstack-queryPeer dependencies
The generated code imports from TanStack Query and axios, so install them in your app:
npm install @tanstack/react-query axios| Peer dependency | Version |
|---|---|
@tanstack/react-query | >= 5.0 |
axios | >= 1.0 |
Requirements
Requires Node.js ≥ 18.
Next steps
Continue to the Quick Start to generate your first controller.