UNPKG

yao-node-client

Version:

A node client for yao application development

25 lines 810 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Studio = void 0; const localcall_1 = require("./localcall"); const request_1 = __importDefault(require("./request")); /** * deprecated * * @param method * @param args * @returns */ function Studio(method, ...args) { const tmp_method = "studio." + method; let fpath = (0, localcall_1.GetFileName)(tmp_method); if (fpath) { return (0, localcall_1.CallLocalProcess)(fpath, tmp_method, ...args); } return (0, request_1.default)({ type: "Studio", method: method, args }); } exports.Studio = Studio; //# sourceMappingURL=studio.js.map