Skip to content

Type Alias: RouteMachineConfig

API / @xmachines/play-xstate / RouteMachineConfig

type RouteMachineConfig = object;

Defined in: packages/play-xstate/src/routing/format-play-route-transitions.ts:73

The minimal structural constraint of a machine config that formatPlayRouteTransitions accepts.

The constraint is loose on purpose. The function therefore accepts the bare config object of createMachine and also the stricter config of setup().createMachine, and the call site needs no type cast. The generic parameter T extends RouteMachineConfig of formatPlayRouteTransitions keeps the original concrete type through the transform. Therefore setup().createMachine() accepts the return value directly.

Indexable

[key: string]: unknown

Properties

context?

optional context?: unknown;

Defined in: packages/play-xstate/src/routing/format-play-route-transitions.ts:74


on?

optional on?: Record<string, unknown>;

Defined in: packages/play-xstate/src/routing/format-play-route-transitions.ts:76


states?

optional states?: Record<string, unknown>;

Defined in: packages/play-xstate/src/routing/format-play-route-transitions.ts:75