docs: function protoWrap(proto, name, callback, isAsync) {
      proto[name] = function () {
        for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
          args[_key2] = arguments[_key2];
        }
  
        if (isAsync) {
          return callback.apply(this, args);
        } else {
          return this.then(function () {
            return callback.apply(this, args);
          });
        }
      };
    }