UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

9 lines (8 loc) 447 B
import { Field, FieldMeta, FieldOptions } from '../Field.js'; import { RecordShape } from '../shape/RecordShape.js'; import { UnionMutator, UnionRow } from '../shape/UnionShape.js'; export declare class UnionField<Row extends UnionRow, Options extends FieldOptions<Row>> extends Field<Row, UnionMutator<Row>, Options> { constructor(shapes: { [key: string]: RecordShape<any>; }, meta: FieldMeta<Row, UnionMutator<Row>, Options>); }