@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
38 lines • 1.11 kB
TypeScript
import { DirectiveNode } from "graphql";
import { FederationVersion } from "../../specifications/federation.js";
import type { ArgumentKind, Directive } from "../../subgraph/state.js";
import { MapByGraph, TypeBuilder } from "./common.js";
export declare function directiveBuilder(): TypeBuilder<Directive, DirectiveState>;
export type DirectiveState = {
kind: "directive";
name: string;
byGraph: MapByGraph<DirectiveStateInGraph>;
locations: Set<string>;
repeatable: boolean;
args: Map<string, DirectiveArgState>;
};
type DirectiveStateInGraph = {
locations: Set<string>;
repeatable: boolean;
version: FederationVersion;
};
export type DirectiveArgState = {
name: string;
type: string;
kind: ArgumentKind;
tags: Set<string>;
inaccessible: boolean;
defaultValue?: string;
byGraph: MapByGraph<ArgStateInGraph>;
ast: {
directives: DirectiveNode[];
};
};
type ArgStateInGraph = {
type: string;
kind: ArgumentKind;
defaultValue?: string;
version: FederationVersion;
};
export {};
//# sourceMappingURL=directive.d.ts.map