ExecutableDefinitionsRule.d.ts 361 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Executable definitions
  5. *
  6. * A GraphQL document is only valid for execution if all definitions are either
  7. * operation or fragment definitions.
  8. */
  9. export function ExecutableDefinitionsRule(
  10. context: ASTValidationContext,
  11. ): ASTVisitor;