UNPKG

545 BTypeScriptView Raw
1import { ASTVisitor } from '../../language/visitor';
2import { ValidationContext, SDLValidationContext } from '../ValidationContext';
3
4/**
5 * Provided required arguments
6 *
7 * A field or directive is only valid if all required (non-null without a
8 * default value) field arguments have been provided.
9 */
10export function ProvidedRequiredArgumentsRule(
11 context: ValidationContext,
12): ASTVisitor;
13
14/**
15 * @internal
16 */
17export function ProvidedRequiredArgumentsOnDirectivesRule(
18 context: ValidationContext | SDLValidationContext,
19): ASTVisitor;