Skip to content

ActionVariantTransition

ActionVariantTransition = { kind: "none"; } | { kind: "to"; variant: VariantName; } | { kind: "unknown_target"; target: string; }

Defined in: packages/client/src/lib/command-processor/action-manager.ts:89

The transitionsTo an Action declares on the Variant it runs from.

  • none: the Action declares no transition.
  • to: the Action moves the Instance to variant, a Variant of its Vessel.
  • unknown_target: the Action names target, which its Vessel does not define, so no transition can apply.

{ kind: "none"; }

readonly kind: "none"

No transition is declared.


{ kind: "to"; variant: VariantName; }

readonly kind: "to"

The Action transitions to a defined Variant.

readonly variant: VariantName

The Variant the Action moves the Instance to.


{ kind: "unknown_target"; target: string; }

readonly kind: "unknown_target"

The Action transitions to a Variant its Vessel does not define.

readonly target: string

The undefined Variant name as declared.