summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts')
-rw-r--r--alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts b/alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts
new file mode 100644
index 0000000..d56c4fd
--- /dev/null
+++ b/alarm/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts
@@ -0,0 +1,11 @@
+import { ASTVisitor } from '../../language/visitor';
+import { ASTValidationContext } from '../ValidationContext';
+
+/**
+ * Subscriptions must only include one field.
+ *
+ * A GraphQL subscription is valid only if it contains a single root field.
+ */
+export function SingleFieldSubscriptionsRule(
+ context: ASTValidationContext,
+): ASTVisitor;