KnownArgumentNames.d.ts 751 B

12345678910111213141516171819202122232425262728
  1. import { ValidationContext, SDLValidationContext } from '../ValidationContext';
  2. import { ASTVisitor } from '../../language/visitor';
  3. export function unknownArgMessage(
  4. argName: string,
  5. fieldName: string,
  6. typeName: string,
  7. suggestedArgs: ReadonlyArray<string>,
  8. ): string;
  9. export function unknownDirectiveArgMessage(
  10. argName: string,
  11. directiveName: string,
  12. suggestedArgs: ReadonlyArray<string>,
  13. ): string;
  14. /**
  15. * Known argument names
  16. *
  17. * A GraphQL field is only valid if all supplied arguments are defined by
  18. * that field.
  19. */
  20. export function KnownArgumentNames(context: ValidationContext): ASTVisitor;
  21. // @internal
  22. export function KnownArgumentNamesOnDirectives(
  23. context: ValidationContext | SDLValidationContext,
  24. ): ASTVisitor;