KnownDirectives.d.ts 547 B

12345678910111213141516171819
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ValidationContext, SDLValidationContext } from '../ValidationContext';
  3. export function unknownDirectiveMessage(directiveName: string): string;
  4. export function misplacedDirectiveMessage(
  5. directiveName: string,
  6. location: string,
  7. ): string;
  8. /**
  9. * Known directives
  10. *
  11. * A GraphQL document is only valid if all `@directives` are known by the
  12. * schema and legally positioned.
  13. */
  14. export function KnownDirectives(
  15. context: ValidationContext | SDLValidationContext,
  16. ): ASTVisitor;