UNPKG

@theguild/federation-composition

Version:
45 lines 1.34 kB
import { DocumentNode, GraphQLError } from 'graphql'; export declare function validateSubgraph(subgraph: { name: string; url?: string; typeDefs: DocumentNode; }): GraphQLError[]; export declare function validate(subgraphs: ReadonlyArray<{ name: string; url?: string; typeDefs: DocumentNode; }>, __internal?: { disableValidationRules?: string[]; }): { readonly success: false; readonly errors: GraphQLError[]; readonly supergraph?: undefined; links?: undefined; readonly specs?: undefined; } | { readonly success: true; readonly supergraph: (import("graphql").DirectiveDefinitionNode | import("graphql").TypeDefinitionNode)[]; readonly links: readonly { name: string | null; version: string | null; identity: string; imports: ({ readonly kind: "type" | "directive"; readonly name: string; readonly alias?: undefined; } | { readonly kind: "type" | "directive"; readonly name: string; readonly alias: string; })[]; }[]; readonly specs: { tag: boolean; inaccessible: boolean; authenticated: boolean; requiresScopes: boolean; policy: boolean; }; errors?: undefined; }; //# sourceMappingURL=validate.d.ts.map