UNPKG

@vaadin/hilla-lit-form

Version:

Hilla form utils

22 lines 691 B
import { BinderRoot } from './BinderRoot.js'; export class Binder extends BinderRoot { constructor(context, Model, config) { const changeCallback = config?.onChange ?? (typeof context.requestUpdate === 'function' ? () => context.requestUpdate() : undefined); super(Model, { ...(config ?? {}), onChange: changeCallback, context, }); Object.defineProperty(this, "context", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.context = context; } } //# sourceMappingURL=Binder.js.map