File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class TypeInfo {
26
26
*/
27
27
initialType ?: GraphQLType ,
28
28
/** @deprecated will be removed in 17.0.0 */
29
- getFieldDefFn ?: getFieldDef ,
29
+ getFieldDefFn ?: GetFieldDefFn ,
30
30
) ;
31
31
getType ( ) : Maybe < GraphQLOutputType > ;
32
32
getParentType ( ) : Maybe < GraphQLCompositeType > ;
@@ -40,7 +40,7 @@ export class TypeInfo {
40
40
enter ( node : ASTNode ) : any ;
41
41
leave ( node : ASTNode ) : any ;
42
42
}
43
- type getFieldDef = (
43
+ type GetFieldDefFn = (
44
44
schema : GraphQLSchema ,
45
45
parentType : GraphQLType ,
46
46
fieldNode : FieldNode ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class TypeInfo {
51
51
_directive: ?GraphQLDirective ;
52
52
_argument: ?GraphQLArgument ;
53
53
_enumValue: ?GraphQLEnumValue ;
54
- _getFieldDef: typeof getFieldDef ;
54
+ _getFieldDef: GetFieldDefFn ;
55
55
56
56
constructor (
57
57
schema : GraphQLSchema ,
@@ -62,7 +62,7 @@ export class TypeInfo {
62
62
initialType ?: ?GraphQLType ,
63
63
64
64
/** @deprecated will be removed in 17.0.0 */
65
- getFieldDefFn ?: typeof getFieldDef ,
65
+ getFieldDefFn ?: GetFieldDefFn ,
66
66
) {
67
67
this . _schema = schema ;
68
68
this . _typeStack = [ ] ;
@@ -292,6 +292,12 @@ export class TypeInfo {
292
292
}
293
293
}
294
294
295
+ type GetFieldDefFn = (
296
+ schema : GraphQLSchema ,
297
+ parentType : GraphQLType ,
298
+ fieldNode : FieldNode ,
299
+ ) => ?GraphQLField < mixed , mixed > ;
300
+
295
301
/**
296
302
* Not exactly the same as the executor's definition of getFieldDef, in this
297
303
* statically evaluated environment we do not always have an Object type,
You can’t perform that action at this time.
0 commit comments