Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
fix(types): export OnTypeConflict type
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 22, 2019
1 parent 48cdd59 commit 557a3a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
13 changes: 13 additions & 0 deletions src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,19 @@ export interface IMockServer {
) => Promise<ExecutionResult>;
}

export type OnTypeConflict = (
left: GraphQLNamedType,
right: GraphQLNamedType,
info?: {
left: {
schema?: GraphQLSchema;
};
right: {
schema?: GraphQLSchema;
};
},
) => GraphQLNamedType;

export type Operation = 'query' | 'mutation' | 'subscription';

export type Request = {
Expand Down
14 changes: 1 addition & 13 deletions src/stitching/mergeSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
IFieldResolver,
IResolvers,
MergeInfo,
OnTypeConflict,
IResolversParameter,
SchemaExecutionConfig,
isSchemaExecutionConfig,
Expand Down Expand Up @@ -56,19 +57,6 @@ type MergeTypeCandidatesResult = {
candidate?: MergeTypeCandidate;
};

type OnTypeConflict = (
left: GraphQLNamedType,
right: GraphQLNamedType,
info?: {
left: {
schema?: GraphQLSchema;
};
right: {
schema?: GraphQLSchema;
};
},
) => GraphQLNamedType;

type CandidateSelector = (
candidates: Array<MergeTypeCandidate>,
) => MergeTypeCandidate;
Expand Down

0 comments on commit 557a3a1

Please sign in to comment.