You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
355 B
13 lines
355 B
import mitt, { Emitter } from 'mitt' |
|
|
|
type Events = { |
|
deviceUpgrade: any; // 设备升级 |
|
deviceLogUploadProgress: any // 设备日志上传 |
|
flightTaskWs: any // 机场任务消息 |
|
droneControlWs: any // 飞行指令信息 |
|
droneControlMqttInfo: any // drc 链路通知 |
|
}; |
|
|
|
const emitter: Emitter<Events> = mitt<Events>() |
|
|
|
export default emitter
|
|
|