We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfb11c commit cdf60feCopy full SHA for cdf60fe
src/transforms/visitSchema.ts
@@ -33,7 +33,7 @@ export type SchemaVisitor = { [key: string]: TypeVisitor };
33
export type TypeVisitor = (
34
type: GraphQLType,
35
schema: GraphQLSchema,
36
-) => GraphQLNamedType;
+) => GraphQLNamedType | null | undefined;
37
38
export function visitSchema(
39
@@ -57,7 +57,7 @@ export function visitSchema(
57
const specifiers = getTypeSpecifiers(type, schema);
58
const typeVisitor = getVisitor(visitor, specifiers);
59
if (typeVisitor) {
60
- const result: GraphQLNamedType | null | undefined = typeVisitor(
+ const result = typeVisitor(
61
type,
62
schema,
63
);
0 commit comments