deno.land / x / pothos@release-1713397530 / packages / core / refs / union.ts
12345678910111213// @ts-nocheckimport { OutputRef, outputShapeKey, parentShapeKey } from '../types/type-params.ts';import BaseTypeRef from './base.ts';export default class UnionRef<T, P = T> extends BaseTypeRef implements OutputRef, PothosSchemaTypes.UnionRef<T, P> { override kind = "Union" as const; $inferType!: T; [outputShapeKey]!: T; [parentShapeKey]!: P; constructor(name: string) { super("Union", name); }}
Version Info