property EventHandlerRegistration.handler

The handler to subscribe for that type, or a factory that builds one from the service registry.

An instance subscribes during register() through subscribeHandler. A factory is called at the onInit phase — after every plugin has registered — and its result subscribes through the SAME subscribeHandler, so the option and the manual route cannot drift.

Type

IEventHandler<unknown>
| RegistryFactory<IEventHandler<unknown>>

Usage

import { type EventHandlerRegistration } from "events-plugin/src/index.ts";