Type aliases
Emit
Emit<EventTypes>: <K>(event: K, ...args: EventTypes[K]) => boolean
Type parameters
Type declaration
-
- <K>(event: K, ...args: EventTypes[K]): boolean
-
Type parameters
-
K: keyof EventTypes & string
Parameters
-
event: K
-
Rest ...args: EventTypes[K]
Returns boolean
On
On<EventTypes, This>: <K>(event: K, fn: (...params: EventTypes[K]) => void, context?: any) => This
Type parameters
Type declaration
-
- <K>(event: K, fn: (...params: EventTypes[K]) => void, context?: any): This
-
Type parameters
-
K: keyof EventTypes & string
Parameters
-
event: K
-
fn: (...params: EventTypes[K]) => void
-
- (...params: EventTypes[K]): void
-
Parameters
-
Rest ...params: EventTypes[K]
Returns void
-
Optional context: any
Returns This
Once
Once<EventTypes, This>: <K>(event: K, fn: (...params: EventTypes[K]) => void, context?: any) => This
Type parameters
Type declaration
-
- <K>(event: K, fn: (...params: EventTypes[K]) => void, context?: any): This
-
Type parameters
-
K: keyof EventTypes & string
Parameters
-
event: K
-
fn: (...params: EventTypes[K]) => void
-
- (...params: EventTypes[K]): void
-
Parameters
-
Rest ...params: EventTypes[K]
Returns void
-
Optional context: any
Returns This