Type Alias: CommandUnregister
ts
type CommandUnregister = () => void;Defined in: src/wirestate-core/types/commands.ts:56
Represents the function returned by command registration.
Call it to remove that exact handler.
Returns
void
Example
typescript
const unregister: CommandUnregister = commandBus.register("MY_COMMAND", handler);
unregister();