property CqrsPluginOptions.commandHandlers
Since 0.1.0

Command handlers registered on the command bus at register() time.

The declarative alternative to resolving CAPABILITIES.COMMAND_BUS and calling register imperatively — which application code has no phase to do, since IApplication exposes no lifecycle hooks and the bus does not exist until the plugin has registered.

Default: [] (no handlers).

Type

Usage

import { type CqrsPluginOptions } from "cqrs-plugin/src/index.ts";