UNPKG

@warriorteam/zalo-personal

Version:

Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support

14 lines (13 loc) 420 B
import { apiFactory } from "../utils.js"; 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, }); }; });