@@ -65,14 +65,14 @@ const NamedType = new GraphQLInterfaceType({
65
65
} ,
66
66
} ) ;
67
67
68
- const LifeType = new GraphQLInterfaceType ( {
68
+ const LifeType : GraphQLInterfaceType = new GraphQLInterfaceType ( {
69
69
name : 'Life' ,
70
70
fields : ( ) => ( {
71
71
progeny : { type : new GraphQLList ( LifeType ) } ,
72
72
} ) ,
73
73
} ) ;
74
74
75
- const MammalType = new GraphQLInterfaceType ( {
75
+ const MammalType : GraphQLInterfaceType = new GraphQLInterfaceType ( {
76
76
name : 'Mammal' ,
77
77
interfaces : [ LifeType ] ,
78
78
fields : ( ) => ( {
@@ -82,7 +82,7 @@ const MammalType = new GraphQLInterfaceType({
82
82
} ) ,
83
83
} ) ;
84
84
85
- const DogType = new GraphQLObjectType ( {
85
+ const DogType : GraphQLObjectType = new GraphQLObjectType ( {
86
86
name : 'Dog' ,
87
87
interfaces : [ MammalType , LifeType , NamedType ] ,
88
88
fields : ( ) => ( {
@@ -95,7 +95,7 @@ const DogType = new GraphQLObjectType({
95
95
isTypeOf : ( value ) => value instanceof Dog ,
96
96
} ) ;
97
97
98
- const CatType = new GraphQLObjectType ( {
98
+ const CatType : GraphQLObjectType = new GraphQLObjectType ( {
99
99
name : 'Cat' ,
100
100
interfaces : [ MammalType , LifeType , NamedType ] ,
101
101
fields : ( ) => ( {
@@ -125,7 +125,7 @@ const PetType = new GraphQLUnionType({
125
125
} ,
126
126
} ) ;
127
127
128
- const PersonType = new GraphQLObjectType ( {
128
+ const PersonType : GraphQLObjectType = new GraphQLObjectType ( {
129
129
name : 'Person' ,
130
130
interfaces : [ NamedType , MammalType , LifeType ] ,
131
131
fields : ( ) => ( {
@@ -503,7 +503,7 @@ describe('Execute: Union and intersection types', () => {
503
503
let encounteredSchema ;
504
504
let encounteredRootValue ;
505
505
506
- const NamedType2 = new GraphQLInterfaceType ( {
506
+ const NamedType2 : GraphQLInterfaceType = new GraphQLInterfaceType ( {
507
507
name : 'Named' ,
508
508
fields : {
509
509
name : { type : GraphQLString } ,
@@ -516,7 +516,7 @@ describe('Execute: Union and intersection types', () => {
516
516
} ,
517
517
} ) ;
518
518
519
- const PersonType2 = new GraphQLObjectType ( {
519
+ const PersonType2 : GraphQLObjectType = new GraphQLObjectType ( {
520
520
name : 'Person' ,
521
521
interfaces : [ NamedType2 ] ,
522
522
fields : {
0 commit comments