diff --git a/src/utils/eventBus.ts b/src/utils/eventBus.ts index 9ea06008..27e06436 100644 --- a/src/utils/eventBus.ts +++ b/src/utils/eventBus.ts @@ -1,3 +1,23 @@ 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()