Skip to content

Interface: CommandDescriptor<R>

Defined in: src/wirestate-core/types/commands.ts:94

Represents the handle for a running command.

Remarks

Returned by the command bus when a command is dispatched. It allows tracking the progress and outcome of the command execution.

Type Parameters

Type ParameterDefault typeDescription
RunknownType of the result produced by the command.

Properties

status

ts
readonly status: CommandStatus;

Defined in: src/wirestate-core/types/commands.ts:102

The current execution status of the command.


task

ts
readonly task: Promise<R>;

Defined in: src/wirestate-core/types/commands.ts:98

A promise that resolves with the command result or rejects with an error.