UNPKG

@theguild/federation-composition

Version:

Open Source Composition library for Apollo Federation

13 lines 1.12 kB
import { GraphQLError } from 'graphql'; import { EnumType, InputObjectType, InterfaceType, ObjectType, ScalarType, SubgraphState, SubgraphType, UnionType } from '../state.js'; export declare function validateSubgraphState(state: SubgraphState): GraphQLError[]; export declare function isTypeSubTypeOf(state: SubgraphState, implementationsMap: Map<string, Set<string>>, maybeSubTypeName: string, superTypeName: string): boolean; export declare function isInputType(state: SubgraphState, typeName: string): boolean; export declare function typeExists(state: SubgraphState, typeName: string): boolean; export declare function isInputObjectType(type: SubgraphType): type is InputObjectType; export declare function isScalarType(type: SubgraphType): type is ScalarType; export declare function isEnumType(type: SubgraphType): type is EnumType; export declare function isObjectType(type: SubgraphType): type is ObjectType; export declare function isInterfaceType(type: SubgraphType): type is InterfaceType; export declare function isUnionType(type: SubgraphType): type is UnionType; //# sourceMappingURL=validate-state.d.ts.map