UNPKG

helene

Version:
15 lines 496 B
"use strict"; 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