File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/openapi-ts/src/plugins/@hey-api/typescript Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -498,16 +498,13 @@ const handleComponent = ({
498
498
} ) => {
499
499
const type = schemaToType ( { plugin, schema } ) ;
500
500
501
- // Don't tag JavaScript enums as 'type' since they export both values and types
502
- const isJavaScriptEnum =
503
- schema . type === 'enum' &&
504
- plugin . config . enums . enabled &&
505
- plugin . config . enums . mode === 'javascript' ;
501
+ // Don't tag enums as 'type' since they export runtime artifacts (values)
502
+ const isEnum = schema . type === 'enum' && plugin . config . enums . enabled ;
506
503
507
504
const symbol = plugin . registerSymbol ( {
508
505
exported : true ,
509
506
meta : {
510
- kind : isJavaScriptEnum ? undefined : 'type' ,
507
+ kind : isEnum ? undefined : 'type' ,
511
508
} ,
512
509
name : buildName ( {
513
510
config : plugin . config . definitions ,
You can’t perform that action at this time.
0 commit comments