Skip to content

Commit 4947443

Browse files
committed
Simply parameters
Signed-off-by: Alan Cha <[email protected]>
1 parent 700d305 commit 4947443

File tree

3 files changed

+21
-51
lines changed

3 files changed

+21
-51
lines changed

packages/openapi-to-graphql/lib/schema_builder.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ import { PreprocessingData } from './types/preprocessing_data';
55
import { Operation, DataDefinition } from './types/operation';
66
import { ParameterObject } from './types/oas3';
77
import { Args, GraphQLType } from './types/graphql';
8-
declare type GetGraphQLTypeParams = {
9-
def: DataDefinition;
10-
operation?: Operation;
11-
data: PreprocessingData;
12-
iteration?: number;
13-
isInputObjectType?: boolean;
14-
};
158
declare type GetArgsParams = {
169
def?: DataDefinition;
1710
parameters: ParameterObject[];
1811
operation?: Operation;
1912
data: PreprocessingData;
2013
};
14+
declare type CreateOrReuseComplexTypeParams = {
15+
def: DataDefinition;
16+
operation?: Operation;
17+
iteration?: number;
18+
isInputObjectType?: boolean;
19+
data: PreprocessingData;
20+
};
2121
/**
2222
* Creates and returns a GraphQL type for the given JSON schema.
2323
*/
24-
export declare function getGraphQLType({ def, operation, data, iteration, isInputObjectType }: GetGraphQLTypeParams): GraphQLType;
24+
export declare function getGraphQLType({ def, operation, data, iteration, isInputObjectType }: CreateOrReuseComplexTypeParams): GraphQLType;
2525
/**
2626
* Creates an object with the arguments for resolving a GraphQL (Input) Object
2727
* Type

0 commit comments

Comments
 (0)