alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
22 lines (20 loc) • 441 B
JavaScript
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
};