File tree Expand file tree Collapse file tree 4 files changed +97
-214
lines changed Expand file tree Collapse file tree 4 files changed +97
-214
lines changed Original file line number Diff line number Diff line change 29
29
"graphql-compose" : " >=2.10.1 || >=3.0.0"
30
30
},
31
31
"devDependencies" : {
32
- "aws-sdk" : " ^2.191 .0" ,
32
+ "aws-sdk" : " ^2.192 .0" ,
33
33
"babel-cli" : " ^6.26.0" ,
34
34
"babel-eslint" : " ^8.2.1" ,
35
- "babel-jest" : " ^22.2.0 " ,
35
+ "babel-jest" : " ^22.2.2 " ,
36
36
"babel-plugin-transform-flow-strip-types" : " ^6.22.0" ,
37
37
"babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
38
38
"babel-plugin-transform-runtime" : " ^6.23.0" ,
48
48
"express-graphql" : " ^0.6.11" ,
49
49
"flow-bin" : " ^0.65.0" ,
50
50
"graphql" : " 0.13.0" ,
51
- "graphql-compose" : " ^3.0.0-beta.2 " ,
52
- "jest" : " ^22.2.1 " ,
51
+ "graphql-compose" : " ^3.0.0-beta.5 " ,
52
+ "jest" : " ^22.2.2 " ,
53
53
"nodemon" : " ^1.14.12" ,
54
54
"npm-run-all" : " ^4.1.2" ,
55
55
"prettier" : " ^1.10.2" ,
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export default class AwsParam {
155
155
name : string ,
156
156
isInput ? : boolean ,
157
157
shapes ? : AwsShapes
158
- ) : ComposeOutputType | ComposeInputType {
158
+ ) : ComposeOutputType < * > | ComposeInputType {
159
159
if ( param . type ) {
160
160
switch ( param . type ) {
161
161
case 'boolean ':
@@ -198,7 +198,7 @@ export default class AwsParam {
198
198
param : ParamShape ,
199
199
isInput ? : boolean ,
200
200
shapes ? : AwsShapes
201
- ) : ComposeOutputType | ComposeInputType {
201
+ ) : ComposeOutputType < * > | ComposeInputType {
202
202
if ( shapes ) {
203
203
return isInput ? shapes . getInputShape ( param . shape ) : shapes . getOutputShape ( param . shape ) ;
204
204
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default class AwsShapes {
11
11
shapes : ShapesMap ;
12
12
prefix : string ;
13
13
shapesInput : { [ name : string ] : ComposeInputType } ;
14
- shapesOutput: { [ name : string ] : ComposeOutputType } ;
14
+ shapesOutput: { [ name : string ] : ComposeOutputType < * > } ;
15
15
16
16
constructor ( shapes : ShapesMap , prefix : string ) {
17
17
this . shapes = shapes ;
@@ -39,7 +39,7 @@ export default class AwsShapes {
39
39
return this . shapesInput [ name ] ;
40
40
}
41
41
42
- getOutputShape ( name : string ) : ComposeOutputType {
42
+ getOutputShape ( name : string ) : ComposeOutputType < * > {
43
43
if ( ! this . shapesOutput [ name ] ) {
44
44
if ( ! this . shapes [ name ] ) {
45
45
throw new Error ( `Shape with name '${ name } ' not found in service config ${ this . prefix } ` ) ;
You can’t perform that action at this time.
0 commit comments