ExecutableDefinitions.d.ts 431 B

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