LoneSchemaDefinition.d.ts 441 B

12345678910111213
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { SDLValidationContext } from '../ValidationContext';
  3. export function schemaDefinitionNotAloneMessage(): string;
  4. export function canNotDefineSchemaWithinExtensionMessage(): string;
  5. /**
  6. * Lone Schema definition
  7. *
  8. * A GraphQL document is only valid if it contains only one schema definition.
  9. */
  10. export function LoneSchemaDefinition(context: SDLValidationContext): ASTVisitor;