1 | import { ValidationContext } from "../ValidationContext";
|
2 | import { ASTVisitor } from "../../language/visitor";
|
3 |
|
4 | export function noSubselectionAllowedMessage(fieldName: string, type: string): string;
|
5 |
|
6 | export function requiredSubselectionMessage(fieldName: string, type: string): string;
|
7 |
|
8 | /**
|
9 | * Scalar leafs
|
10 | *
|
11 | * A GraphQL document is valid only if all leaf fields (fields without
|
12 | * sub selections) are of scalar or enum types.
|
13 | */
|
14 | export function ScalarLeafs(context: ValidationContext): ASTVisitor;
|