commandFailedEventHandler()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Creates a DashboardEventHandler instance that will be invoked for a DashboardCommandFailed of a particular command.
export declare function commandFailedEventHandler<TCommand extends IDashboardCommand>(type: TCommand["type"], handler: DashboardEventHandler<IDashboardCommandFailed<TCommand>>["handler"]): DashboardEventHandler<IDashboardCommandFailed<TCommand>>;
Parameters
Parameter | Type | Description |
|---|---|---|
type | TCommand[“type”] | the type of command the DashboardCommandFailed of which this handler should trigger for |
handler | DashboardEventHandler<IDashboardCommandFailed<TCommand>>[“handler”] | the actual event handling function |
Returns
DashboardEventHandler<IDashboardCommandFailed<TCommand>>