Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/funny-lamps-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/visitor-plugin-common': minor
---

enumsAsConst output now includes deprecated directive
2 changes: 1 addition & 1 deletion packages/plugins/typescript/typescript/src/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class TsVisitor<
transformUnderscore: true,
})
);
const comment = transformComment(enumOption.description as any as string, 1);
const comment = this.getNodeComment(enumOption);
const name = enumOption.name as unknown as string;
const enumValue: string | number = getValueFromConfig(name) ?? name;

Expand Down
Loading