summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts')
-rw-r--r--alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts b/alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts
new file mode 100644
index 0000000..8435bab
--- /dev/null
+++ b/alarm/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts
@@ -0,0 +1,10 @@
+import { ASTVisitor } from '../../language/visitor';
+import { ValidationContext } from '../ValidationContext';
+
+/**
+ * No unused fragments
+ *
+ * A GraphQL document is only valid if all fragment definitions are spread
+ * within operations, or spread within other fragments spread within operations.
+ */
+export function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor;