Files
botAffilate/serverNode/node_modules/zca-js/dist/apis/custom.js
T

16 lines
473 B
JavaScript

import {} from "../context.js";
import { apiFactory } from "../utils.js";
/* eslint-disable */
export const customFactory = 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,
});
};
});