UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

15 lines (14 loc) 727 B
import type { PothosUnionTypeConfig, SchemaTypes } from '../types/index.js'; import { type ObjectParam, type OutputRef, outputShapeKey, parentShapeKey } from '../types/type-params.js'; import { BaseTypeRef } from './base.js'; export declare class UnionRef<Types extends SchemaTypes, T, P = T> extends BaseTypeRef<Types, PothosUnionTypeConfig> implements OutputRef<T>, PothosSchemaTypes.UnionRef<Types, T, P> { kind: "Union"; $inferType: T; [outputShapeKey]: T; [parentShapeKey]: P; private types; constructor(name: string, config?: PothosUnionTypeConfig); addTypes(types: ObjectParam<Types>[] | (() => ObjectParam<Types>[])): void; prepareForBuild(): void; } //# sourceMappingURL=union.d.ts.map