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

10 lines (9 loc) 480 B
import { type ContextSession } from "../context.js"; import { type FactoryUtils } from "../utils.js"; export type CustomAPIProps<T, K> = { ctx: ContextSession; utils: FactoryUtils<T>; props: K; }; export type CustomAPICallback<T, K> = (props: CustomAPIProps<T, K>) => T | Promise<T>; export declare const customFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => <T, K = any>(name: string, callback: CustomAPICallback<T, K>) => void;