alinea
Version:
Headless git-based CMS
8 lines (7 loc) • 595 B
TypeScript
import { Field, type FieldMeta, type FieldOptions } from '../Field.js';
import { Schema } from '../Schema.js';
import type { RecordShape } from '../shape/RecordShape.js';
import { type UnionMutator, type UnionRow } from '../shape/UnionShape.js';
export declare class UnionField<StoredValue extends UnionRow, QueryValue, Options extends FieldOptions<StoredValue>> extends Field<StoredValue, QueryValue, UnionMutator<StoredValue>, Options> {
constructor(schema: Schema, shapes: Record<string, RecordShape<any>>, meta: FieldMeta<StoredValue, QueryValue, UnionMutator<StoredValue>, Options>);
}