summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts')
-rw-r--r--school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts b/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts
new file mode 100644
index 0000000..7b594fd
--- /dev/null
+++ b/school/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts
@@ -0,0 +1,10 @@
+import { ASTVisitor } from '../../language/visitor';
+import { ValidationContext } from '../ValidationContext';
+
+/**
+ * Known fragment names
+ *
+ * A GraphQL document is only valid if all `...Fragment` fragment spreads refer
+ * to fragments defined in the same document.
+ */
+export function KnownFragmentNamesRule(context: ValidationContext): ASTVisitor;