A validator for checking whether the value of an element confirms to certain restrictions.
Validates the given element. If it is not valid, the error message should be thrown.
The error message as the string when the element with its current value is not valid.
Element to validate
Current value of the element
Generated using TypeDoc
A validator for checking whether the value of an element confirms to certain restrictions.