API reference / @node-ts/bus-test / TestCommand
Class: TestCommand
Defined in: bus-test/src/helpers/test-command.ts:3
A base message type that is transmitted over a transport. Declaring messages with this base class enables efficient routing and dispatch to handlers.
Extends
Constructors
Constructor
ts
new TestCommand(value, date): TestCommand;Defined in: bus-test/src/helpers/test-command.ts:10
Parameters
| Parameter | Type |
|---|---|
value | string |
date | Date |
Returns
TestCommand
Overrides
Properties
| Property | Modifier | Type | Default value | Overrides | Defined in |
|---|---|---|---|---|---|
$name | public | string | TestCommand.NAME | Command.$name | bus-test/src/helpers/test-command.ts:5 |
$version | public | number | 1 | Command.$version | bus-test/src/helpers/test-command.ts:6 |
date | readonly | Date | undefined | - | bus-test/src/helpers/test-command.ts:8 |
value | readonly | string | undefined | - | bus-test/src/helpers/test-command.ts:11 |
NAME | static | string | '@node-ts/bus-core/test-command' | - | bus-test/src/helpers/test-command.ts:4 |