diff options
Diffstat (limited to 'includes/external/school/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts')
-rw-r--r-- | includes/external/school/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts b/includes/external/school/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts new file mode 100644 index 0000000..dcb6af6 --- /dev/null +++ b/includes/external/school/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts @@ -0,0 +1,12 @@ +import { ASTVisitor } from '../../language/visitor'; +import { ValidationContext, SDLValidationContext } from '../ValidationContext'; + +/** + * Known directives + * + * A GraphQL document is only valid if all `@directives` are known by the + * schema and legally positioned. + */ +export function KnownDirectivesRule( + context: ValidationContext | SDLValidationContext, +): ASTVisitor; |