File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { inspect } from '../../jsutils/inspect' ;
2
2
import { keyMap } from '../../jsutils/keyMap' ;
3
+ import type { ObjMap } from '../../jsutils/ObjMap' ;
3
4
4
5
import { GraphQLError } from '../../error/GraphQLError' ;
5
6
@@ -10,6 +11,7 @@ import { print } from '../../language/printer';
10
11
11
12
import { specifiedDirectives } from '../../type/directives' ;
12
13
import { isType , isRequiredArgument } from '../../type/definition' ;
14
+ import type { GraphQLArgument } from '../../type/definition' ;
13
15
14
16
import type {
15
17
ValidationContext ,
@@ -62,7 +64,9 @@ export function ProvidedRequiredArgumentsRule(
62
64
export function ProvidedRequiredArgumentsOnDirectivesRule (
63
65
context : ValidationContext | SDLValidationContext ,
64
66
) : ASTVisitor {
65
- const requiredArgsMap = Object . create ( null ) ;
67
+ const requiredArgsMap : ObjMap <
68
+ ObjMap < GraphQLArgument | InputValueDefinitionNode >
69
+ > = Object . create ( null ) ;
66
70
67
71
const schema = context . getSchema ( ) ;
68
72
const definedDirectives = schema ?. getDirectives ( ) ?? specifiedDirectives ;
You can’t perform that action at this time.
0 commit comments