summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts
blob: 9709256c4892ef50fb57d87fc1de07ac11306108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { ASTVisitor } from '../../language/visitor';
import { ASTValidationContext } from '../ValidationContext';

/**
 * Executable definitions
 *
 * A GraphQL document is only valid for execution if all definitions are either
 * operation or fragment definitions.
 */
export function ExecutableDefinitionsRule(
  context: ASTValidationContext,
): ASTVisitor;