Skip to content

Commit 13b2453

Browse files
Alan-ChaErikWittern
authored andcommitted
Simplify parameters
Signed-off-by: Alan Cha <[email protected]>
1 parent 6d033dd commit 13b2453

File tree

3 files changed

+23
-52
lines changed

3 files changed

+23
-52
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
requestPayloadDef?: 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 the arguments for resolving a field
2727
*/

0 commit comments

Comments
 (0)