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)

22 lines (20 loc) 441 B
import "../../chunks/chunk-U5RRZUYZ.js"; // src/core/field/UnionField.ts import { Field } from "../Field.js"; import { UnionShape } from "../shape/UnionShape.js"; var UnionField = class extends Field { constructor(shapes, meta) { super({ shape: new UnionShape( meta.options.label, shapes, meta.options.initialValue, meta.postProcess ), ...meta }); } }; export { UnionField };