docs: function (name, value, options) {
      if (options) {
          return validator[name](value, options) ? null : (_a = {},
              _a[name] = {
                  valid: false
              },
              _a);
      }
      return validator[name](value) ? null : (_b = {},
          _b[name] = {
              valid: false
          },
          _b);
      var _a, _b;
  }