AbstractConstraint

Monster/Constraints. AbstractConstraint

the abstract contraint defines the api for all constraints. mainly the method isValid() is defined.

derived classes must implement the method isValid().

Constructor

new AbstractConstraint()

Source:
Since:
  • 1.3.0

Methods

isValid(value) → {Promise}

Source:

this method must return a promise containing the result of the check.

Parameters:
Name Type Description
value *
Returns:
Type
Promise