UNPKG

wechaty-puppet-service

Version:
17 lines 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventTypeRev = void 0; const wechaty_grpc_1 = require("wechaty-grpc"); /** * Huan(202003): * @chatie/GRPC proto gen TS does not generate the ENUM type with reverse mapping. * So we need to do it by ourselves: * 1. define the EventTypeRev, and * 2. loop EventType to fill it. */ exports.EventTypeRev = {}; for (const key in wechaty_grpc_1.puppet.EventType) { const val = wechaty_grpc_1.puppet.EventType[key]; exports.EventTypeRev[val] = key; } //# sourceMappingURL=event-type-rev.js.map