diff --git a/src/utils/mitt.ts b/src/utils/mitt.ts index f8b524ef2..14abd09fc 100644 --- a/src/utils/mitt.ts +++ b/src/utils/mitt.ts @@ -1,4 +1,21 @@ import type { Emitter } from "mitt"; import mitt from "mitt"; -export const emitter: Emitter = mitt(); +type Events = { + resize: { + detail: { + width: number; + height: number; + }; + }; + openPanel: string; + tagViewsChange: string; + tagViewsShowModel: string; + logoChange: string; + changLayoutRoute: { + indexPath: string; + parentPath: string; + }; +}; + +export const emitter: Emitter = mitt();