Closed EcksDy closed 1 month ago
Enums inside schema.ts are exported correctly. But then inside of index.ts everything is exported as types:
schema.ts
index.ts
export type * from "./schema";
This leads to the following error when trying to use the enums:
'SomeEnum' cannot be used as a value because it was exported using 'export type'. ts(1362)
@EcksDy, thank you for the feedback, I'll fix it.
@EcksDy, I've just released a new @openapi-qraft/cli@1.12.1-beta.0, could you please clarify if this works as intended?
@openapi-qraft/cli@1.12.1-beta.0
Works as intended 🙏
Fixed in @openapi-qraft/tanstack-query-react-plugin@1.12.1.
@openapi-qraft/tanstack-query-react-plugin@1.12.1
Enums inside
schema.ts
are exported correctly. But then inside ofindex.ts
everything is exported as types:This leads to the following error when trying to use the enums: