@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
24 lines • 775 B
TypeScript
import type { DirectiveNode } from 'graphql';
import { FederationVersion } from '../../specifications/federation.js';
import { Description, UnionType } from '../../subgraph/state.js';
import { type MapByGraph, type TypeBuilder } from './common.js';
export declare function unionTypeBuilder(): TypeBuilder<UnionType, UnionTypeState>;
export type UnionTypeState = {
kind: 'union';
name: string;
tags: Set<string>;
hasDefinition: boolean;
description?: Description;
inaccessible: boolean;
byGraph: MapByGraph<UnionTypeInGraph>;
members: Set<string>;
ast: {
directives: DirectiveNode[];
};
};
type UnionTypeInGraph = {
members: Set<string>;
version: FederationVersion;
};
export {};
//# sourceMappingURL=union-type.d.ts.map