@@ -7,7 +7,7 @@ import { ObjMap } from '../jsutils/ObjMap';
77import { DirectiveDefinitionNode } from '../language/ast' ;
88import { DirectiveLocationEnum } from '../language/directiveLocation' ;
99
10- import { GraphQLInputValue , GraphQLInputValueConfig } from './definition' ;
10+ import { GraphQLArgument , GraphQLArgumentConfig } from './definition' ;
1111
1212/**
1313 * Test if the given value is a GraphQL directive.
@@ -37,14 +37,14 @@ export class GraphQLDirective {
3737 description : Maybe < string > ;
3838 locations : Array < DirectiveLocationEnum > ;
3939 isRepeatable : boolean ;
40- args : Array < GraphQLDirectiveArgument > ;
40+ args : Array < GraphQLArgument > ;
4141 extensions : Maybe < Readonly < GraphQLDirectiveExtensions > > ;
4242 astNode : Maybe < DirectiveDefinitionNode > ;
4343
4444 constructor ( config : Readonly < GraphQLDirectiveConfig > ) ;
4545
4646 toConfig ( ) : GraphQLDirectiveConfig & {
47- args : ObjMap < GraphQLDirectiveArgumentConfig > ;
47+ args : ObjMap < GraphQLArgumentConfig > ;
4848 isRepeatable : boolean ;
4949 extensions : Maybe < Readonly < GraphQLDirectiveExtensions > > ;
5050 } ;
@@ -59,29 +59,12 @@ export interface GraphQLDirectiveConfig {
5959 name : string ;
6060 description ?: Maybe < string > ;
6161 locations : Array < DirectiveLocationEnum > ;
62- args ?: Maybe < ObjMap < GraphQLDirectiveArgumentConfig > > ;
62+ args ?: Maybe < ObjMap < GraphQLArgumentConfig > > ;
6363 isRepeatable ?: Maybe < boolean > ;
6464 extensions ?: Maybe < Readonly < GraphQLDirectiveExtensions > > ;
6565 astNode ?: Maybe < DirectiveDefinitionNode > ;
6666}
6767
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-
8568/**
8669 * Used to conditionally include fields or fragments.
8770 */
0 commit comments