Skip to content

Function: OnEvent() ​

ts
function OnEvent(event, options?): MethodDecorator;

Defined in: packages/core/src/events/event.decorators.ts:30

Decorator to mark a method as an event handler

Parameters ​

ParameterType
eventstring | symbol
optionsOnEventOptions

Returns ​

MethodDecorator

Released under the MIT License.