Current section
Files
Jump to
Current section
Files
priv/npm/node_modules/graphql-tools/utils/SchemaDirectiveVisitor.d.ts
import { GraphQLDirective, GraphQLSchema } from 'graphql';
import { VisitableSchemaType } from '../Interfaces';
import { SchemaVisitor } from './SchemaVisitor';
export declare class SchemaDirectiveVisitor<TArgs = {
[name: string]: any;
}, TContext = {
[key: string]: any;
}> extends SchemaVisitor {
name: string;
args: TArgs;
visitedType: VisitableSchemaType;
context: TContext;
static getDirectiveDeclaration(directiveName: string, schema: GraphQLSchema): GraphQLDirective | null | undefined;
static visitSchemaDirectives(schema: GraphQLSchema, directiveVisitors: Record<string, typeof SchemaDirectiveVisitor>, context?: {
[key: string]: any;
}): Record<string, Array<SchemaDirectiveVisitor>>;
protected static getDeclaredDirectives(schema: GraphQLSchema, directiveVisitors: Record<string, typeof SchemaDirectiveVisitor>): Record<string, GraphQLDirective>;
protected constructor(config: {
name: string;
args: TArgs;
visitedType: VisitableSchemaType;
schema: GraphQLSchema;
context: TContext;
});
}