Skip to content

Commit 1abb543

Browse files
committed
fix(core): Fix TypeScript type inference in graphql-custom-fields
1 parent 2663552 commit 1abb543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/api/config/graphql-custom-fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ function getDeprecationDirective(field: CustomFieldConfig): string {
758758

759759
if (typeof field.deprecated === 'string') {
760760
// Escape quotes in the deprecation reason
761-
const escapedReason = field.deprecated.replace(/"/g, '\\"');
761+
const escapedReason = (field.deprecated as string).replace(/"/g, '\\"');
762762
return `@deprecated(reason: "${escapedReason}")`;
763763
}
764764

0 commit comments

Comments
 (0)