UNPKG

1.56 kBTypeScriptView Raw
1import { GraphQLArgument, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLUnionType } from 'graphql';
2export declare abstract class SchemaVisitor {
3 schema: GraphQLSchema;
4 static implementsVisitorMethod(methodName: string): boolean;
5 visitSchema(_schema: GraphQLSchema): void;
6 visitScalar(_scalar: GraphQLScalarType): GraphQLScalarType | void | null;
7 visitObject(_object: GraphQLObjectType): GraphQLObjectType | void | null;
8 visitFieldDefinition(_field: GraphQLField<any, any>, _details: {
9 objectType: GraphQLObjectType | GraphQLInterfaceType;
10 }): GraphQLField<any, any> | void | null;
11 visitArgumentDefinition(_argument: GraphQLArgument, _details: {
12 field: GraphQLField<any, any>;
13 objectType: GraphQLObjectType | GraphQLInterfaceType;
14 }): GraphQLArgument | void | null;
15 visitInterface(_iface: GraphQLInterfaceType): GraphQLInterfaceType | void | null;
16 visitUnion(_union: GraphQLUnionType): GraphQLUnionType | void | null;
17 visitEnum(_type: GraphQLEnumType): GraphQLEnumType | void | null;
18 visitEnumValue(_value: GraphQLEnumValue, _details: {
19 enumType: GraphQLEnumType;
20 }): GraphQLEnumValue | void | null;
21 visitInputObject(_object: GraphQLInputObjectType): GraphQLInputObjectType | void | null;
22 visitInputFieldDefinition(_field: GraphQLInputField, _details: {
23 objectType: GraphQLInputObjectType;
24 }): GraphQLInputField | void | null;
25}