UNPKG

@theguild/federation-composition

Version:
11 lines 578 B
import { GraphQLError } from 'graphql'; import type { SubgraphState } from '../../subgraph/state.js'; export type SupergraphValidationContext = ReturnType<typeof createSupergraphValidationContext>; export declare function createSupergraphValidationContext(subgraphStates: Map<string, SubgraphState>): { subgraphStates: Map<string, SubgraphState>; graphIdToName(id: string): string; graphNameToId(name: string): string | null; reportError(error: GraphQLError): void; collectReportedErrors(): GraphQLError[]; }; //# sourceMappingURL=validation-context.d.ts.map