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.
|
import mitt, { Emitter } from 'mitt' |
|
|
|
type Events = { |
|
deviceUpgrade: any; // 设备升级 |
|
deviceLogUploadProgress: any // 设备日志上传 |
|
deviceTaskProgress: any // 设备任务进度 |
|
}; |
|
|
|
const emitter: Emitter<Events> = mitt<Events>() |
|
|
|
export default emitter
|
|
|