summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts
blob: 5075e74e9b8862340d271071d32aba5b350c72e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { ASTVisitor } from '../../language/visitor';
import { SDLValidationContext } from '../ValidationContext';

/**
 * Lone Schema definition
 *
 * A GraphQL document is only valid if it contains only one schema definition.
 */
export function LoneSchemaDefinitionRule(
  context: SDLValidationContext,
): ASTVisitor;