Strong typed utility interface that allows defining of emittable events based on an event definition type.
Provides event type validation at design time making avoiding type errors at runtime
Define all emittable events and their arguments in a new interface which extends the EventDefinitions type.
Each function defined in the interface represents an event, the arguments of the method define the parameters
that are emitted by the emitter and that can be expected by listeners.
Strong typed utility interface that allows defining of emittable events based on an event definition type. Provides event type validation at design time making avoiding type errors at runtime
Define all emittable events and their arguments in a new interface which extends the EventDefinitions type. Each function defined in the interface represents an event, the arguments of the method define the parameters that are emitted by the emitter and that can be expected by listeners.
Usage sample: