Skip to content

Commit 5d829f3

Browse files
nicohrubecclaude
andcommitted
fix(node): Fix graphql vendored types accuracy
- Source.locationOffset: match upstream type (Location) - GraphQLUnionType.getTypes(): use ReadonlyArray to match upstream - Remove unused Location import from instrumentation.ts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3f1ec15 commit 5d829f3

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/node/src/integrations/tracing/graphql/vendored/graphql-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface Token {
3030
export interface Source {
3131
body: string;
3232
name: string;
33-
locationOffset: { line: number; column: number };
33+
locationOffset: Location;
3434
[key: string]: any;
3535
}
3636

@@ -116,7 +116,7 @@ interface GraphQLWrappingType {
116116

117117
export interface GraphQLUnionType {
118118
name: string;
119-
getTypes(): GraphQLObjectType[];
119+
getTypes(): ReadonlyArray<GraphQLObjectType>;
120120
[key: string]: any;
121121
}
122122

packages/node/src/integrations/tracing/graphql/vendored/instrumentation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import type {
3838
GraphQLFieldResolver,
3939
GraphQLSchema,
4040
GraphQLTypeResolver,
41-
Location,
4241
OperationDefinitionNode,
4342
ParseOptions,
4443
PromiseOrValue,

0 commit comments

Comments
 (0)