/* eslint-disable max-classes-per-file */ import { Unparseable, Validator } from '@lion/ui/form-core.js'; export class MatchesOption extends Validator { static get validatorName() { return 'MatchesOption'; } /** * @param {unknown} [value] * @param {string | undefined} [options] * @param {{ node: any }} [config] */ // eslint-disable-next-line class-methods-use-this execute(value, options, config) { return config?.node.modelValue instanceof Unparseable; } }