docs: function configure(options) {
      if (options && isArray(options.globalMessages)) {
          globalMessages = options.globalMessages;
      }
      if (options && isObject(options.errorTypes)) {
          errorTypes = options.errorTypes;
      }
  }