Interface: LegacyHandlerDecoratorFactory<EventName>
Types.LegacyHandlerDecoratorFactory
Type parameters
Name | Type |
---|---|
EventName | extends keyof NamesToEventsMap |
Properties
decorate
• decorate: (legacyHandler
: Handler
<NamesToEventsMap
[EventName
]>) => EventHandler
<NamedEvents
>
Type declaration
▸ (legacyHandler
): EventHandler
<NamedEvents
>
Parameters
Name | Type |
---|---|
legacyHandler | Handler <NamesToEventsMap [EventName ]> |
Returns
getDecorator
• getDecorator: (legacyHandler
: Handler
<NamesToEventsMap
[EventName
]>) => undefined
| EventHandler
<NamedEvents
>
Type declaration
▸ (legacyHandler
): undefined
| EventHandler
<NamedEvents
>
Parameters
Name | Type |
---|---|
legacyHandler | Handler <NamesToEventsMap [EventName ]> |
Returns
undefined
| EventHandler
<NamedEvents
>