fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3500 from hey-api/fix/typescript-enum-ref

fix: reference enum object when creating enum types

authored by

Lubos and committed by
GitHub
3324e945 f38367d0

+6 -1
+5
.changeset/nice-memes-do.md
··· 1 + --- 2 + "@hey-api/openapi-ts": patch 3 + --- 4 + 5 + **plugin(typescript)**: fix: reference enum object when creating enum types
+1 -1
packages/openapi-ts/src/plugins/@hey-api/typescript/shared/export.ts
··· 151 151 .alias(symbol) 152 152 .export() 153 153 .$if(plugin.config.comments && createSchemaComment(schema), (t, v) => t.doc(v)) 154 - .type($.type(symbol).idx($.type(symbol).typeofType().keyof()).typeofType()); 154 + .type($.type(symbolObject).idx($.type(symbolObject).typeofType().keyof()).typeofType()); 155 155 plugin.node(node); 156 156 return; 157 157 } else if (