fix: ts ds happy

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2023-12-28 13:10:32 +08:00
parent c29be5177e
commit 9297b36158

View File

@@ -28,7 +28,7 @@ export const createHandler = (options: CreateHandlerOptions): Handler => {
const { type: event, payload } = data
handler.emitter.emit(event as BusinessEvents, payload)
handler.emitter.emit(event as any, payload)
handler.emitter.emit('*', {
type: event,
payload,