diff options
Diffstat (limited to 'alarm/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts')
-rw-r--r-- | alarm/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts b/alarm/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts new file mode 100644 index 0000000..ae956ef --- /dev/null +++ b/alarm/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts @@ -0,0 +1,10 @@ +import { ASTVisitor } from '../../language/visitor'; +import { ValidationContext } from '../ValidationContext'; + +/** + * Scalar leafs + * + * A GraphQL document is valid only if all leaf fields (fields without + * sub selections) are of scalar or enum types. + */ +export function ScalarLeafsRule(context: ValidationContext): ASTVisitor; |