This interface is designed to be extended by consumers of Lime Web
Components using module augmentation. Each key in the interface corresponds
to the id of a registered command, and the value is the type of the command.
This allows for type-safe access to commands within the application.
// The registry entry makes the id pick the type, so `command` is a // SendWelcomeEmailCommand and `params` is checked against its properties. constcommand = commandBus.createCommand({ id:'send-welcome-email', params: { template:'welcome' }, });
Registry for commands
This interface is designed to be extended by consumers of Lime Web Components using module augmentation. Each key in the interface corresponds to the id of a registered command, and the value is the type of the command. This allows for type-safe access to commands within the application.
Example: Add a command to the registry