Skip to content

@jsvision/ui / CommandEvent

Interface: CommandEvent

Defined in: ui/src/view/types.ts:108

A typed command raised within the app (e.g. from a button or menu) and routed to handlers.

Properties

arg?

readonly optional arg?: unknown

Defined in: ui/src/view/types.ts:114

Optional payload carried with the command.


command

readonly command: string

Defined in: ui/src/view/types.ts:112

The command name, compared by equality, e.g. 'ok' | 'cancel' | 'quit'.


type

readonly type: "command"

Defined in: ui/src/view/types.ts:110

Discriminant tag.