@jsvision/ui / CommandEvent
Interface: CommandEvent
Defined in: ui/src/view/types.ts:99
A typed command raised within the app (e.g. from a button or menu) and routed to handlers.
Properties
arg?
readonlyoptionalarg?:unknown
Defined in: ui/src/view/types.ts:105
Optional payload carried with the command.
command
readonlycommand:string
Defined in: ui/src/view/types.ts:103
The command name, compared by equality, e.g. 'ok' | 'cancel' | 'quit'.
type
readonlytype:"command"
Defined in: ui/src/view/types.ts:101
Discriminant tag.