UNPKG

408 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ASTValidationContext } from '../ValidationContext';
3/**
4 * Unique fragment names
5 *
6 * A GraphQL document is only valid if all defined fragments have unique names.
7 *
8 * See https://spec.graphql.org/draft/#sec-Fragment-Name-Uniqueness
9 */
10export declare function UniqueFragmentNamesRule(
11 context: ASTValidationContext,
12): ASTVisitor;