Skip to content

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

Terminal window
npm install -D swagger-to-tanstack-query

Peer dependencies

The generated code imports from TanStack Query and axios, so install them in your app:

Terminal window
npm install @tanstack/react-query axios
Peer dependencyVersion
@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.