husq
2023-09-27 2c2bc8614c8ea0ce386369eb4924da1e6aa052d1
src/event-bus/index.ts
@@ -3,9 +3,10 @@
type Events = {
  deviceUpgrade: any; // 设备升级
  deviceLogUploadProgress: any // 设备日志上传
  deviceTaskProgress: any // 设备任务进度
  flightTaskWs: any // 机场任务消息
  droneControlWs: any // 飞行指令信息
  droneControlMqttInfo: any // drc 链路通知
};
const emitter: Emitter<Events> = mitt<Events>()
export default emitter