ProvidedRequiredArgumentsRule.d.ts 545 B

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