1 | import { GraphQLSchema } from 'graphql';
|
2 | import { DirectableObject } from './getDirectiveExtensions.js';
|
3 | export interface DirectiveAnnotation {
|
4 | name: string;
|
5 | args?: Record<string, any>;
|
6 | }
|
7 | export type DirectableGraphQLObject = DirectableObject;
|
8 | export declare function getDirectivesInExtensions(node: DirectableGraphQLObject, pathToDirectivesInExtensions?: string[]): Array<DirectiveAnnotation>;
|
9 | export declare function getDirectiveInExtensions(node: DirectableGraphQLObject, directiveName: string, pathToDirectivesInExtensions?: string[]): Array<Record<string, any>> | undefined;
|
10 | export declare function getDirectives(schema: GraphQLSchema, node: DirectableGraphQLObject, pathToDirectivesInExtensions?: string[]): Array<DirectiveAnnotation>;
|
11 | export declare function getDirective(schema: GraphQLSchema, node: DirectableGraphQLObject, directiveName: string, pathToDirectivesInExtensions?: string[]): Array<Record<string, any>> | undefined;
|