diff options
Diffstat (limited to 'school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts')
-rw-r--r-- | school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts b/school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts new file mode 100644 index 0000000..d059446 --- /dev/null +++ b/school/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts @@ -0,0 +1,12 @@ +import { ASTVisitor } from '../../language/visitor'; +import { ASTValidationContext } from '../ValidationContext'; + +/** + * Unique directive names per location + * + * A GraphQL document is only valid if all directives at a given location + * are uniquely named. + */ +export function UniqueDirectivesPerLocationRule( + context: ASTValidationContext, +): ASTVisitor; |