ProvidedRequiredArguments.d.ts 753 B

1234567891011121314151617181920212223242526272829
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext, SDLValidationContext } from '../ValidationContext';
  3. export function missingFieldArgMessage(
  4. fieldName: string,
  5. argName: string,
  6. type: string,
  7. ): string;
  8. export function missingDirectiveArgMessage(
  9. directiveName: string,
  10. argName: string,
  11. type: string,
  12. ): string;
  13. /**
  14. * Provided required arguments
  15. *
  16. * A field or directive is only valid if all required (non-null without a
  17. * default value) field arguments have been provided.
  18. */
  19. export function ProvidedRequiredArguments(
  20. context: ValidationContext,
  21. ): ASTVisitor;
  22. // @internal
  23. export function ProvidedRequiredArgumentsOnDirectives(
  24. context: ValidationContext | SDLValidationContext,
  25. ): ASTVisitor;