File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ export type GraphQLScalarTypeConfig<InternalType> = {
301
301
export class GraphQLObjectType {
302
302
name : string ;
303
303
description : ?string ;
304
- isTypeOf : ?( value : mixed , info ? : GraphQLResolveInfo ) = > boolean ;
304
+ isTypeOf : ?GraphQLIsTypeOfFn ;
305
305
306
306
_typeConfig : GraphQLObjectTypeConfig ;
307
307
_fields : GraphQLFieldDefinitionMap ;
@@ -459,7 +459,7 @@ export type GraphQLObjectTypeConfig = {
459
459
name : string ;
460
460
interfaces ?: GraphQLInterfacesThunk | Array < GraphQLInterfaceType > ;
461
461
fields : GraphQLFieldConfigMapThunk | GraphQLFieldConfigMap ;
462
- isTypeOf ?: ( value : mixed , info ? : GraphQLResolveInfo ) => boolean ;
462
+ isTypeOf ?: GraphQLIsTypeOfFn ;
463
463
description ?: ?string
464
464
}
465
465
@@ -472,6 +472,11 @@ export type GraphQLTypeResolveFn = (
472
472
info ?: GraphQLResolveInfo
473
473
) => ?GraphQLObjectType
474
474
475
+ export type GraphQLIsTypeOfFn = (
476
+ value : mixed ,
477
+ info ?: GraphQLResolveInfo
478
+ ) => boolean
479
+
475
480
export type GraphQLFieldResolveFn = (
476
481
source : mixed ,
477
482
args : { [ argName : string ] : mixed } ,
You can’t perform that action at this time.
0 commit comments