eventBus 类型完善

This commit is contained in:
Hooray Hu 2023-06-05 20:26:33 +08:00
parent 870f25b5c7
commit 05e1da7678

View File

@ -1,3 +1,15 @@
import mitt from 'mitt'
export default mitt()
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
type Events = {
// 应用设置弹窗
'global-app-setting-toggle': undefined
// 系统信息弹窗
'global-system-info-toggle': undefined
// 快捷键弹窗
'global-hotkeys-intro-toggle': undefined
// 搜索框弹窗
'global-search-toggle': undefined
}
export default mitt<Events>()