remove mitt typings namesapce

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent eaf339ed79
commit 57df28de2f
9 changed files with 23 additions and 15 deletions

5
typings/types.d.ts vendored
View File

@@ -208,6 +208,11 @@ export declare type actionWithDelay = {
doAction: () => void;
delay: number;
};
export declare type Handler = (event?: unknown) => void;
export declare type Emitter = {
on(type: string, handler: Handler): void;
emit(type: string, event?: unknown): void;
};
export declare enum ReplayerEvents {
Start = "start",
Pause = "pause",