Skip to main content
Module

x/xstate/src/typegenTypes.ts>TypegenMeta

Actor-based state management & orchestration for complex app logic.
Latest
interface TypegenMeta
implements TypegenEnabled
Deprecated
import { type TypegenMeta } from "https://deno.land/x/xstate@xstate%405.12.0/src/typegenTypes.ts";

Properties

matchesStates: string | { }

Allows you to specify all the results of state.matches

tags: string

Allows you to specify all tags used by the machine

missingImplementations: { actions: string; actors: string; delays: string; guards: string; }

Allows you to specify all the missing implementations of the machine

internalEvents: { }

A map for the internal events of the machine.

key: 'xstate.done.actor.myActor'
value: {
  type: 'xstate.done.actor.myActor';
  data: unknown;
  __tip: 'Declare the type in event types!';
}
invokeSrcNameMap: Record<string, string>

Maps the src of the invoked actor to the event type that includes its known id

key: 'invokeSrc' value: 'xstate.done.actor.invokeName'

eventsCausingActions: Record<string, string>

Keeps track of which events lead to which actions.

Key: 'EVENT_NAME' Value: 'actionName' | 'otherActionName'

eventsCausingDelays: Record<string, string>

Keeps track of which events lead to which delays.

Key: 'EVENT_NAME' Value: 'delayName' | 'otherDelayName'

eventsCausingGuards: Record<string, string>

Keeps track of which events lead to which guards.

Key: 'EVENT_NAME' Value: 'guardName' | 'otherGuardName'

eventsCausingActors: Record<string, string>

Keeps track of which events lead to which actors.

Key: 'EVENT_NAME' Value: 'actorName' | 'otherActorName'