File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ const SomeInputObjectType = new GraphQLInputObjectType({
55
55
} ,
56
56
} ) ;
57
57
58
- function withModifiers < T : GraphQLNamedType > (types: Array< T > ): Array< * > {
58
+ function withModifiers < T : GraphQLNamedType > (
59
+ types: Array< T > ,
60
+ ): Array< T | GraphQLList < T > | GraphQLNonNull< T | GraphQLList < T > >> {
59
61
return [
60
62
...types ,
61
63
...types . map ( type => GraphQLList ( type ) ) ,
@@ -64,7 +66,7 @@ function withModifiers<T: GraphQLNamedType>(types: Array<T>): Array<*> {
64
66
] ;
65
67
}
66
68
67
- const outputTypes : Array < GraphQLOutputType > = withModifiers ( [
69
+ const outputTypes = withModifiers ( [
68
70
GraphQLString ,
69
71
SomeScalarType ,
70
72
SomeEnumType ,
@@ -73,18 +75,18 @@ const outputTypes: Array<GraphQLOutputType> = withModifiers([
73
75
SomeInterfaceType ,
74
76
] ) ;
75
77
76
- const notOutputTypes : Array < GraphQLInputType > = withModifiers ( [
78
+ const notOutputTypes = withModifiers ( [
77
79
SomeInputObjectType ,
78
80
] ) ;
79
81
80
- const inputTypes : Array < GraphQLInputType > = withModifiers ( [
82
+ const inputTypes = withModifiers ( [
81
83
GraphQLString ,
82
84
SomeScalarType ,
83
85
SomeEnumType ,
84
86
SomeInputObjectType ,
85
87
] ) ;
86
88
87
- const notInputTypes : Array < GraphQLOutputType > = withModifiers ( [
89
+ const notInputTypes = withModifiers ( [
88
90
SomeObjectType ,
89
91
SomeUnionType ,
90
92
SomeInterfaceType ,
You can’t perform that action at this time.
0 commit comments