openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

"error TS6133: 'queryKey' is declared but its value is never read" from queries.ts and suspense.ts

Open Etsija opened this issue 3 months ago • 4 comments

Describe the bug Files queries/queries.ts and queries/suspense.ts generate TS errors from queryKey being declared but its value never read, resulting in error TS6133 when building a project with the API.

OpenAPI JSON causing the bug api.json

Expected behavior Either don't generate unused parameters, or auto-insert

// @ts-nocheck

to generated files which may declare unused variables.

  • OS: Ubuntu 22.04
  • Version 1.3.0

Etsija avatar May 13 '24 11:05 Etsija