UNPKG

wechaty-redux

Version:

Wechaty Redux Plugin Powered By Ducks

11 lines 654 B
const puppetRegistry = new Map(); const wechatyRegistry = new Map(); const getPuppet = (id) => puppetRegistry.get(id); const getWechaty = (id) => wechatyRegistry.get(id); // const getMessage = async (puppetId: string, messageId: string) => puppetPool.get(puppetId)?.messagePayload(messageId) // const getRoom = async (puppetId: string, roomId: string) => puppetPool.get(puppetId)?.roomPayload(roomId) // const getContact = async (puppetId: string, contactId: string) => puppetPool.get(puppetId)?.contactPayload(contactId) export { // type WechatyLike, puppetRegistry, wechatyRegistry, getPuppet, getWechaty, }; //# sourceMappingURL=registry.js.map