close #320 use emitter handler to catch before load state
This commit is contained in:
@@ -409,6 +409,7 @@ export type Handler = (event?: unknown) => void;
|
||||
export type Emitter = {
|
||||
on(type: string, handler: Handler): void;
|
||||
emit(type: string, event?: unknown): void;
|
||||
off(type: string, handler: Handler): void;
|
||||
};
|
||||
|
||||
export type Arguments<T> = T extends (...payload: infer U) => unknown
|
||||
|
||||
Reference in New Issue
Block a user