We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f38367d + 127e67b commit 3324e94Copy full SHA for 3324e94
2 files changed
.changeset/nice-memes-do.md
@@ -0,0 +1,5 @@
1
+---
2
+"@hey-api/openapi-ts": patch
3
4
+
5
+**plugin(typescript)**: fix: reference enum object when creating enum types
packages/openapi-ts/src/plugins/@hey-api/typescript/shared/export.ts
@@ -151,7 +151,7 @@ export const exportType = ({
151
.alias(symbol)
152
.export()
153
.$if(plugin.config.comments && createSchemaComment(schema), (t, v) => t.doc(v))
154
- .type($.type(symbol).idx($.type(symbol).typeofType().keyof()).typeofType());
+ .type($.type(symbolObject).idx($.type(symbolObject).typeofType().keyof()).typeofType());
155
plugin.node(node);
156
return;
157
} else if (
0 commit comments