Skip to content

@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?

readonly optional arg?: unknown

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

Optional payload carried with the command.


command

readonly command: string

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

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


type

readonly type: "command"

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

Discriminant tag.