Closed holtgrewe closed 3 weeks ago
With @hey-api/openapi-ts v0.53.11, the generated code yields problems with type checks:
@hey-api/openapi-ts v0.53.11
ext/varfish-api/src/lib/@tanstack/vue-query.gen.ts:84:14 - error TS2527: The inferred type of 'casesAnalysisApiCaseanalysisListInfiniteOptions' references an inaccessible 'unique symbol' type. A type annotation is necessary. 84 export const casesAnalysisApiCaseanalysisListInfiniteOptions = (options: Options<CasesAnalysisApiCaseanalysisListData>) => { return infiniteQueryOptions<CasesAnalysisApiCaseanalysisListResponse, CasesAnalysisApiCaseanalysisListError, InfiniteData<CasesAnalysisApiCaseanalysisListResponse>, QueryKey<Options<CasesAnalysisApiCaseanalysisListData>>, string | Pick<QueryKey<Options<CasesAnalysisApiCaseanalysisListData>>[0], 'body' | 'headers' | 'path' | 'query'>>( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://github.com/holtgrewe/hey-api-bugs-unique-symbl
See here
https://github.com/holtgrewe/hey-api-bugs-unique-symbl/blob/main/varfish_api_schema.yaml
See MWE repository
@holtgrewe I can't replicate this issue locally with the latest version. Please try once it's released and if the issue persists, create a StackBlitz example. 🙏
Thanks, this works now.
Description
With
@hey-api/openapi-ts v0.53.11
, the generated code yields problems with type checks:Reproducible example or configuration
https://github.com/holtgrewe/hey-api-bugs-unique-symbl
OpenAPI specification (optional)
See here
https://github.com/holtgrewe/hey-api-bugs-unique-symbl/blob/main/varfish_api_schema.yaml
System information (optional)
See MWE repository