11/* @flow */
22
3- import { type ComposeOutputType , type ComposeInputType } from 'graphql-compose' ;
3+ import { type ComposeOutputTypeDefinition , type ComposeInputTypeDefinition } from 'graphql-compose' ;
44import { AwsParam , type Param } from './AwsParam' ;
55
66export type ShapesMap = {
@@ -10,8 +10,8 @@ export type ShapesMap = {
1010export class AwsShapes < TContext > {
1111 shapes : ShapesMap ;
1212 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 > } ;
1515
1616 constructor ( shapes : ShapesMap , prefix : string ) {
1717 this . shapes = shapes ;
@@ -20,7 +20,7 @@ export class AwsShapes<TContext> {
2020 this . shapesOutput = { } ;
2121 }
2222
23- getInputShape ( name : string ) : ComposeInputType {
23+ getInputShape ( name : string ) : ComposeInputTypeDefinition {
2424 if ( ! this . shapesInput [ name ] ) {
2525 if ( ! this . shapes [ name ] ) {
2626 throw new Error ( `Shape with name '${ name } ' not found in service config ${ this . prefix } ` ) ;
@@ -39,7 +39,7 @@ export class AwsShapes<TContext> {
3939 return this . shapesInput [ name ] ;
4040 }
4141
42- getOutputShape ( name : string ) : ComposeOutputType < any , TContext > {
42+ getOutputShape ( name : string ) : ComposeOutputTypeDefinition < TContext > {
4343 if ( ! this . shapesOutput [ name ] ) {
4444 if ( ! this . shapes [ name ] ) {
4545 throw new Error ( `Shape with name '${ name } ' not found in service config ${ this . prefix } ` ) ;
0 commit comments