Skip to main content

Interface: LegacyHandlerDecoratorFactory<EventName>

Types.LegacyHandlerDecoratorFactory

Type parameters

NameType
EventNameextends keyof NamesToEventsMap

Properties

decorate

decorate: (legacyHandler: Handler<NamesToEventsMap[EventName]>) => EventHandler<NamedEvents>

Type declaration

▸ (legacyHandler): EventHandler<NamedEvents>

Parameters
NameType
legacyHandlerHandler<NamesToEventsMap[EventName]>
Returns

EventHandler<NamedEvents>


getDecorator

getDecorator: (legacyHandler: Handler<NamesToEventsMap[EventName]>) => undefined | EventHandler<NamedEvents>

Type declaration

▸ (legacyHandler): undefined | EventHandler<NamedEvents>

Parameters
NameType
legacyHandlerHandler<NamesToEventsMap[EventName]>
Returns

undefined | EventHandler<NamedEvents>