@@ -7,7 +7,7 @@ import { ObjMap } from '../jsutils/ObjMap';
7
7
import { DirectiveDefinitionNode } from '../language/ast' ;
8
8
import { DirectiveLocationEnum } from '../language/directiveLocation' ;
9
9
10
- import { GraphQLInputValue , GraphQLInputValueConfig } from './definition' ;
10
+ import { GraphQLArgument , GraphQLArgumentConfig } from './definition' ;
11
11
12
12
/**
13
13
* Test if the given value is a GraphQL directive.
@@ -37,14 +37,14 @@ export class GraphQLDirective {
37
37
description : Maybe < string > ;
38
38
locations : Array < DirectiveLocationEnum > ;
39
39
isRepeatable : boolean ;
40
- args : Array < GraphQLDirectiveArgument > ;
40
+ args : Array < GraphQLArgument > ;
41
41
extensions : Maybe < Readonly < GraphQLDirectiveExtensions > > ;
42
42
astNode : Maybe < DirectiveDefinitionNode > ;
43
43
44
44
constructor ( config : Readonly < GraphQLDirectiveConfig > ) ;
45
45
46
46
toConfig ( ) : GraphQLDirectiveConfig & {
47
- args : ObjMap < GraphQLDirectiveArgumentConfig > ;
47
+ args : ObjMap < GraphQLArgumentConfig > ;
48
48
isRepeatable : boolean ;
49
49
extensions : Maybe < Readonly < GraphQLDirectiveExtensions > > ;
50
50
} ;
@@ -59,29 +59,12 @@ export interface GraphQLDirectiveConfig {
59
59
name : string ;
60
60
description ?: Maybe < string > ;
61
61
locations : Array < DirectiveLocationEnum > ;
62
- args ?: Maybe < ObjMap < GraphQLDirectiveArgumentConfig > > ;
62
+ args ?: Maybe < ObjMap < GraphQLArgumentConfig > > ;
63
63
isRepeatable ?: Maybe < boolean > ;
64
64
extensions ?: Maybe < Readonly < GraphQLDirectiveExtensions > > ;
65
65
astNode ?: Maybe < DirectiveDefinitionNode > ;
66
66
}
67
67
68
- /**
69
- * Custom extensions
70
- *
71
- * @remarks
72
- * Use a unique identifier name for your extension, for example the name of
73
- * your library or project. Do not use a shortened identifier as this increases
74
- * the risk of conflicts. We recommend you add at most one extension field,
75
- * an object which can contain all the values you need.
76
- */
77
- export interface GraphQLDirectiveArgumentExtensions {
78
- [ attributeName : string ] : unknown ;
79
- }
80
-
81
- export type GraphQLDirectiveArgument = GraphQLInputValue < GraphQLDirectiveArgumentExtensions > ;
82
-
83
- export type GraphQLDirectiveArgumentConfig = GraphQLInputValueConfig < GraphQLDirectiveArgumentExtensions > ;
84
-
85
68
/**
86
69
* Used to conditionally include fields or fragments.
87
70
*/
0 commit comments