ProvidedRequiredArgumentsRule.d.ts 574 B

1234567891011121314151617181920
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import type {
  3. SDLValidationContext,
  4. ValidationContext,
  5. } from '../ValidationContext';
  6. /**
  7. * Provided required arguments
  8. *
  9. * A field or directive is only valid if all required (non-null without a
  10. * default value) field arguments have been provided.
  11. */
  12. export declare function ProvidedRequiredArgumentsRule(
  13. context: ValidationContext,
  14. ): ASTVisitor;
  15. /**
  16. * @internal
  17. */
  18. export declare function ProvidedRequiredArgumentsOnDirectivesRule(
  19. context: ValidationContext | SDLValidationContext,
  20. ): ASTVisitor;