@redocly/graphql-docs
Version:
Redocly GraphQL docs
10 lines (9 loc) • 698 B
TypeScript
import type { GraphQLNamedType, GraphQLEnumValue, GraphQLField } from 'graphql';
import { Field } from '../../schema/index.js';
export interface RequiresScopesDirective {
scopes: string[][];
parentScopes?: string[][];
}
export declare function getRequiresScopesDirective(type: GraphQLNamedType | Field | GraphQLEnumValue | GraphQLField<any, any>): RequiresScopesDirective | null;
export declare function getRequiresScopesWithParent(field: Field | GraphQLEnumValue, parentType: GraphQLNamedType | GraphQLField<any, any>): RequiresScopesDirective | null;
export declare function hasRequiresScopesDirective(type: GraphQLNamedType | Field | GraphQLEnumValue | GraphQLField<any, any>): boolean;