remove mitt typings namesapce

This commit is contained in:
Yanzhen Yu
2019-06-05 17:33:20 +08:00
parent 6d3b9c2345
commit d32b31f3e3
9 changed files with 23 additions and 15 deletions

View File

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