helene
Version:
Real-time Web Apps for Node.js
15 lines • 496 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.callMethodProxy = callMethodProxy;
function callMethodProxy(client, path = '') {
return new Proxy(function () { }, {
get(_, prop) {
const newPath = path ? `${path}.${prop}` : prop;
return callMethodProxy(client, newPath);
},
apply(_, __, args) {
return client.call(path, ...args);
},
});
}
//# sourceMappingURL=call-method-proxy.js.map