Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xstate/src/typegenTypes.ts>ResolveTypegenMeta

State machines and statecharts for the modern web.
Go to Latest
interface ResolveTypegenMeta
import { type ResolveTypegenMeta } from "https://deno.land/x/xstate@xstate@5.0.0-beta.36/src/typegenTypes.ts";

Type Parameters

TTypesMeta extends TypegenConstraint
TEvent extends EventObject
TActor extends ProvidedActor
TAction extends ParameterizedObject
TGuard extends ParameterizedObject
TDelay extends string
TTag extends string

Properties

@@xstate/typegen: TTypesMeta["@@xstate/typegen"]
resolved: { enabled: TTypesMeta & { indexedActions: IndexParameterizedImplementation<TAction, Prop<TTypesMeta, "eventsCausingActions">>; indexedActors: string extends TActor["src"] ? Record<keyof Prop<TTypesMeta, "eventsCausingActors">, { logic: AnyActorLogic; }> : IndexByProp<TActor, "src">; indexedEvents: MergeWithInternalEvents<IndexByType<(string extends TEvent["type"] ? never : TEvent) | GenerateActorEvents<TActor, Prop<TTypesMeta, "invokeSrcNameMap">>>, Prop<TTypesMeta, "internalEvents">>; indexedGuards: IndexParameterizedImplementation<TGuard, Prop<TTypesMeta, "eventsCausingGuards">>; indexedDelays: IndexParameterizedImplementation<WrapIntoParameterizedObject<TDelay>, Prop<TTypesMeta, "eventsCausingDelays">>; tags: string extends TTag ? Prop<TTypesMeta, "tags"> : TTag; }; disabled:
& AllImplementationsProvided
& AllowAllEvents
& { indexedActions: IndexByType<TAction>; indexedActors: IndexByProp<TActor, "src">; indexedEvents: Record<string, TEvent>; indexedGuards: IndexByType<TGuard>; indexedDelays: IndexByType<WrapIntoParameterizedObject<TDelay>>; invokeSrcNameMap: Record<string, string>; tags: TTag; }
; }[IsNever<TTypesMeta> extends true ? "disabled" : TTypesMeta["@@xstate/typegen"] extends true ? "enabled" : "disabled"]