yeow-api 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/event.ts +1 -1
package/package.json
CHANGED
package/src/event.ts
CHANGED
|
@@ -218,7 +218,7 @@ function adaptEvent(type: string, data: any): any {
|
|
|
218
218
|
// ── EventOn/EventOff ───────────────────────────────────────────────
|
|
219
219
|
|
|
220
220
|
export function eventOn<K extends keyof EventMap>(eventType: K, handler: (e: EventMap[K]) => void): () => void {
|
|
221
|
-
const wrapper = (data: any) => handler(
|
|
221
|
+
const wrapper = (data: any) => handler(data as EventMap[K]);
|
|
222
222
|
(wrapper as any)._raw = handler;
|
|
223
223
|
|
|
224
224
|
if (!(globalThis as any).__yeowEventHandlers) (globalThis as any).__yeowEventHandlers = {};
|