1
1
/* @flow */
2
2
3
- import { type ComposeOutputType , type ComposeInputType } from 'graphql-compose' ;
3
+ import { type ComposeOutputTypeDefinition , type ComposeInputTypeDefinition } from 'graphql-compose' ;
4
4
import { AwsParam , type Param } from './AwsParam' ;
5
5
6
6
export type ShapesMap = {
@@ -10,8 +10,8 @@ export type ShapesMap = {
10
10
export class AwsShapes < TContext > {
11
11
shapes : ShapesMap ;
12
12
prefix: string ;
13
- shapesInput: { [ name : string ] : ComposeInputType } ;
14
- shapesOutput: { [ name : string ] : ComposeOutputType < any , TContext> } ;
13
+ shapesInput: { [ name : string ] : ComposeInputTypeDefinition } ;
14
+ shapesOutput: { [ name : string ] : ComposeOutputTypeDefinition < TContext > } ;
15
15
16
16
constructor ( shapes : ShapesMap , prefix : string ) {
17
17
this . shapes = shapes ;
@@ -20,7 +20,7 @@ export class AwsShapes<TContext> {
20
20
this . shapesOutput = { } ;
21
21
}
22
22
23
- getInputShape ( name : string ) : ComposeInputType {
23
+ getInputShape ( name : string ) : ComposeInputTypeDefinition {
24
24
if ( ! this . shapesInput [ name ] ) {
25
25
if ( ! this . shapes [ name ] ) {
26
26
throw new Error ( `Shape with name '${ name } ' not found in service config ${ this . prefix } ` ) ;
@@ -39,7 +39,7 @@ export class AwsShapes<TContext> {
39
39
return this . shapesInput [ name ] ;
40
40
}
41
41
42
- getOutputShape ( name : string ) : ComposeOutputType < any , TContext > {
42
+ getOutputShape ( name : string ) : ComposeOutputTypeDefinition < TContext > {
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 } ` ) ;
0 commit comments