EventSource Class
Package: @esfx/events
Declaration
export declare class EventSource<F extends (...args: any[]) => void>
Properties
event
Gets the Event raised by this source.
Declaration
get event(): Event<F>;
Property Value
Event<F>
owner
Gets the owner of the Event.
Declaration
get owner(): ThisParameterType<F>;
Property Value
ThisParameterType<F>
Methods
emit(args)
Emits the linked Event for this source.
Declaration
emit(...args: Parameters<F>): boolean;
Parameters
- args
- Parameters<F>
The arguments for th eevent.
Returns
true
if there were any listeners for the event; otherwise, false
.