Skip to content

Commit 6730520

Browse files
committed
fix: ProvidedRequiredArgumentsRule types
1 parent 8263e1d commit 6730520

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/validation/rules/ProvidedRequiredArgumentsRule.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { inspect } from '../../jsutils/inspect';
22
import { keyMap } from '../../jsutils/keyMap';
3+
import type { ObjMap } from '../../jsutils/ObjMap';
34

45
import { GraphQLError } from '../../error/GraphQLError';
56

@@ -10,6 +11,7 @@ import { print } from '../../language/printer';
1011

1112
import { specifiedDirectives } from '../../type/directives';
1213
import { isType, isRequiredArgument } from '../../type/definition';
14+
import type { GraphQLArgument } from '../../type/definition';
1315

1416
import type {
1517
ValidationContext,
@@ -62,7 +64,9 @@ export function ProvidedRequiredArgumentsRule(
6264
export function ProvidedRequiredArgumentsOnDirectivesRule(
6365
context: ValidationContext | SDLValidationContext,
6466
): ASTVisitor {
65-
const requiredArgsMap = Object.create(null);
67+
const requiredArgsMap: ObjMap<
68+
ObjMap<GraphQLArgument | InputValueDefinitionNode>
69+
> = Object.create(null);
6670

6771
const schema = context.getSchema();
6872
const definedDirectives = schema?.getDirectives() ?? specifiedDirectives;

0 commit comments

Comments
 (0)