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:48

Minimal structural constraint for machine configs accepted by formatPlayRouteTransitions.

This is intentionally loose so the function accepts both the bare createMachine config object and the stricter setup().createMachine config without requiring any type casts at the call site. The generic T extends RouteMachineConfig parameter on formatPlayRouteTransitions preserves the original concrete type through the transform, so the return value remains directly usable by setup().createMachine().

Indexable

[key: string]: unknown

Properties

context?

optional context?: unknown;

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


on?

optional on?: Record<string, unknown>;

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


states?

optional states?: Record<string, unknown>;

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