zca-js
Version:
Unofficial Zalo API for JavaScript
20 lines (16 loc) • 491 B
JavaScript
;
var utils = require('../utils.cjs');
/* eslint-disable */
const customFactory = utils.apiFactory()((api, ctx, utils) => {
return function custom(name, callback) {
Object.defineProperty(api, name, {
value: function (props) {
return callback({ ctx, utils, props });
},
writable: false,
enumerable: false,
configurable: false,
});
};
});
exports.customFactory = customFactory;