validate(typeOptions, fieldValue, errorMessages) {
    if (typeof fieldValue !== "boolean") {
      errorMessages.push("The field must be of type boolean.");
      return false;
    }

    return true;
  }
@param {TypeOptions} typeOptions
@param {*} fieldValue
@param {string[]} errorMessages