OnEvent
Callable
- Parameters- ofType: Constructable<Event<unknown>>- The type of event being listened to. 
 - Returns (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void- The decorated method. - Parameters- target: any
- propertyKey: string
- descriptor: PropertyDescriptor
 - Returns void
 
 
An
@OnEventis a method decorator to listen to an event.Decorators