UNPKG

652 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type {
3 SDLValidationContext,
4 ValidationContext,
5} from '../ValidationContext';
6/**
7 * Known argument names
8 *
9 * A GraphQL field is only valid if all supplied arguments are defined by
10 * that field.
11 *
12 * See https://spec.graphql.org/draft/#sec-Argument-Names
13 * See https://spec.graphql.org/draft/#sec-Directives-Are-In-Valid-Locations
14 */
15export declare function KnownArgumentNamesRule(
16 context: ValidationContext,
17): ASTVisitor;
18/**
19 * @internal
20 */
21export declare function KnownArgumentNamesOnDirectivesRule(
22 context: ValidationContext | SDLValidationContext,
23): ASTVisitor;