UNPKG

@warriorteam/zalo-personal

Version:

Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support, auto-reply, product catalog, and business features

15 lines (14 loc) 441 B
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, }); }; });