Avoid functions, DOM elements, class instances with methods, circular references, etc.
Assignability requirements:
All properties must be public (not private or protected)
Properties cannot be readonly after instantiation
Constructor parameters are optional for command creation
The platform creates commands by instantiating the class without constructor arguments,
then directly assigning values to properties. Commands may also be serialized for storage,
transmission, or recreation via CommandBus.createCommand.
Example: Declare a command with serializable properties
// Dates travel as ISO strings. A Date instance does not survive // serialization, and the platform may serialize a command. publicstartDate: string; publicendDate: string; }
Base marker interface for all commands in the command bus pattern.
AnyCommand serves as the root interface for the command pattern implementation. All commands must extend this interface (either directly or through LimeObjectCommand or LimeObjectBulkCommand) to be handled by the CommandBus.
Commands represent user actions or operations that can be executed, such as:
Example: Declare a command with serializable properties
See