We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c14758 commit c5f45b5Copy full SHA for c5f45b5
src/event_bus.ts
@@ -5,10 +5,10 @@ type EventCallback = (...args: any[]) => void
5
type EventDefinition = Record<string, any[]>
6
7
// Generic event bus creator function - similar to defineEmits pattern
8
-export function defineEventBus<T extends EventDefinition>(events: T = {} as T) {
+export function defineEventBus<T extends EventDefinition>(_: T = {} as T) {
9
// Type for event callbacks mapped to their parameter types
10
type EventCallbacks = {
11
- [K in keyof T]: (...args: T[K]) => void
+ [K in keyof T]: EventCallback
12
}
13
14
// Type-safe event listeners storage
0 commit comments