xstate 6.0.0-alpha.55 → 6.0.0-alpha.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/setup.d.ts +29 -26
- package/dist/declarations/src/types.d.ts +9 -3
- package/dist/declarations/src/types.v6.d.ts +4 -2
- package/dist/xstate-scxml.umd.min.js.map +1 -1
- package/dist/xstate.cjs.js +27 -0
- package/dist/xstate.development.cjs.js +27 -0
- package/dist/xstate.development.esm.js +27 -0
- package/dist/xstate.esm.js +27 -0
- package/dist/xstate.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export { machineVersions, type AdaptEventsOptions, type EventAdapterHandlers, ty
|
|
|
11
11
|
export { types, isTypeSchema, type StandardSchemaV1, type TypeSchema } from "./schema.types.js";
|
|
12
12
|
export type { ActorValidationBoundary, ActorValidationEventOrigin, ActorValidationRequest, ActorLogicValidator } from "./validation.types.js";
|
|
13
13
|
export { createSystem, setup } from "./setup.js";
|
|
14
|
-
export type { AnySetupConfig, SetupConfig, SetupReturn, SetupReturnFromConfig, SetupSchemas, SystemActorMap, SystemConfig, SystemRuntime, SetupStateSchema, SetupStateSchemas, SetupStateType } from "./setup.js";
|
|
14
|
+
export type { ActiveStateContext, AnySetupConfig, RootContextMarker, StrictSetupStateSchemas, StrictSetupStateTargetsFlag, StrictSetupStateTargetsMarker, RelativeSetupStateSchemasMarker, CurrentSetupStateSchemaMarker, SetupStateParentTypeMarker, SetupStateSchemasWithParentType, RootSetupStateSchemasMarker, WithRootSetupStateSchemas, SetupConfig, SetupReturn, SetupReturnFromConfig, SetupSchemas, SystemActorMap, SystemConfig, SystemRuntime, SetupStateSchema, SetupStateSchemas, SetupStateType } from "./setup.js";
|
|
15
15
|
export { getInitialSnapshot, getNextSnapshot } from "./getNextSnapshot.js";
|
|
16
16
|
export type { InspectionEvent, ActorInspectionEvent, DeadLetterInspectionEvent, TransitionInspectionEvent, ActionRecord, SentRecord } from "./inspection.js";
|
|
17
17
|
export { SimulatedClock } from "./SimulatedClock.js";
|
|
@@ -24,7 +24,7 @@ export type { ActorSystem, ActorSystemRuntime, AnyActorSystem, DeadLetterDetail,
|
|
|
24
24
|
export { toPromise } from "./toPromise.js";
|
|
25
25
|
export type * from "./types.js";
|
|
26
26
|
export { SpecialTargets } from "./types.js";
|
|
27
|
-
export type { Next_MachineConfig as MachineConfig, Next_StateNodeConfig as StateNodeConfig, Next_InvokeConfig as InvokeConfig, Next_TransitionConfigOrTarget as TransitionConfigOrTarget, Sources, InferEvents, WidenLiterals } from "./types.v6.js";
|
|
27
|
+
export type { Next_MachineConfig as MachineConfig, Next_StateNodeConfig as StateNodeConfig, Next_ChoiceStateNodeConfig as ChoiceStateNodeConfig, Next_RegularStateNodeConfig as RegularStateNodeConfig, Next_InvokeConfig as InvokeConfig, Next_TransitionConfigOrTarget as TransitionConfigOrTarget, Sources, InferEvents, WidenLiterals } from "./types.v6.js";
|
|
28
28
|
export { getAllOwnEventDescriptors as __unsafe_getAllOwnEventDescriptors, matchesState, checkStateIn, pathToStateValue, toObserver } from "./utils.js";
|
|
29
29
|
export { transition, initialTransition, getMicrosteps, getInitialMicrosteps, getNextTransitions } from "./transition.js";
|
|
30
30
|
export { executeEffects, isBuiltInExecutableAction } from "./transitionActions.js";
|
|
@@ -206,48 +206,54 @@ type UncheckedSetupStateSchemas = Record<string, UncheckedSetupStateSchema>;
|
|
|
206
206
|
type SetupStateKey<TStateSchemas extends Record<string, SetupStateSchema>> = string extends SetupStateKeys<TStateSchemas> ? string : [SetupStateKeys<TStateSchemas>] extends [never] ? string : SetupStateKeys<TStateSchemas>;
|
|
207
207
|
type StrictSetupStatePaths<TStateSchemas extends Record<string, SetupStateSchema>> = [SetupStateKeys<TStateSchemas>] extends [never] ? never : StatePaths<TStateSchemas>;
|
|
208
208
|
type SetupRelativeStateTarget<TStateSchemas extends Record<string, SetupStateSchema>> = string extends SetupStateKeys<TStateSchemas> ? `.${string}` : [SetupStateKeys<TStateSchemas>] extends [never] ? '.' : '.' | `.${StatePaths<TStateSchemas> & string}`;
|
|
209
|
-
type SetupStateTarget<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends {
|
|
210
|
-
readonly [strictSetupStateTargets]: true;
|
|
211
|
-
} ? StrictSetupStatePaths<TStateSchemas> | SetupRelativeStateTarget<RelativeSetupStateSchemas<TStateSchemas>> | `#${string}` : string extends SetupStateKeys<TStateSchemas> ? string : [SetupStateKeys<TStateSchemas>] extends [never] ? string : StatePaths<TStateSchemas> | `.${string}` | `#${string}`;
|
|
209
|
+
type SetupStateTarget<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends StrictSetupStateTargetsFlag ? StrictSetupStatePaths<TStateSchemas> | SetupRelativeStateTarget<RelativeSetupStateSchemas<TStateSchemas>> | `#${string}` : string extends SetupStateKeys<TStateSchemas> ? string : [SetupStateKeys<TStateSchemas>] extends [never] ? string : StatePaths<TStateSchemas> | `.${string}` | `#${string}`;
|
|
212
210
|
type KnownSetupStateTarget<TStateSchemas extends Record<string, SetupStateSchema>> = string extends StatePaths<TStateSchemas> ? string extends StatePaths<RelativeSetupStateSchemas<TStateSchemas>> ? never : SetupRelativeStateTarget<RelativeSetupStateSchemas<TStateSchemas>> | RootSetupStateIdTarget<RootSetupStateSchemas<TStateSchemas>> : (StrictSetupStatePaths<TStateSchemas> & string) | SetupRelativeStateTarget<RelativeSetupStateSchemas<TStateSchemas>> | RootSetupStateIdTarget<RootSetupStateSchemas<TStateSchemas>>;
|
|
213
211
|
declare const strictSetupStateTargets: unique symbol;
|
|
214
212
|
declare const relativeSetupStateSchemas: unique symbol;
|
|
215
213
|
declare const rootSetupStateSchemas: unique symbol;
|
|
216
214
|
declare const currentSetupStateSchema: unique symbol;
|
|
217
215
|
declare const parentSetupStateType: unique symbol;
|
|
218
|
-
|
|
216
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
217
|
+
export type StrictSetupStateTargetsFlag = {
|
|
219
218
|
readonly [strictSetupStateTargets]: true;
|
|
219
|
+
};
|
|
220
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
221
|
+
export type RelativeSetupStateSchemasMarker<TRelativeStateSchemas extends Record<string, SetupStateSchema>> = {
|
|
220
222
|
readonly [relativeSetupStateSchemas]: TRelativeStateSchemas;
|
|
221
|
-
|
|
223
|
+
};
|
|
224
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
225
|
+
export type CurrentSetupStateSchemaMarker<TCurrentStateSchema extends SetupStateSchema> = {
|
|
222
226
|
readonly [currentSetupStateSchema]: TCurrentStateSchema;
|
|
223
227
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
type
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
type CurrentSetupStateSchema<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends
|
|
231
|
-
readonly [currentSetupStateSchema]: infer TCurrentStateSchema extends SetupStateSchema;
|
|
232
|
-
} ? TCurrentStateSchema : never;
|
|
228
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
229
|
+
export type StrictSetupStateTargetsMarker<TRelativeStateSchemas extends Record<string, SetupStateSchema>, TRootStateSchemas extends Record<string, SetupStateSchema>, TCurrentStateSchema extends SetupStateSchema> = StrictSetupStateTargetsFlag & RelativeSetupStateSchemasMarker<TRelativeStateSchemas> & RootSetupStateSchemasMarker<TRootStateSchemas> & CurrentSetupStateSchemaMarker<TCurrentStateSchema>;
|
|
230
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
231
|
+
export type StrictSetupStateSchemas<TStateSchemas extends Record<string, SetupStateSchema>, TRelativeStateSchemas extends Record<string, SetupStateSchema> = Record<string, SetupStateSchema>, TRootStateSchemas extends Record<string, SetupStateSchema> = RootSetupStateSchemas<TStateSchemas>, TCurrentStateSchema extends SetupStateSchema = never> = TStateSchemas & StrictSetupStateTargetsMarker<TRelativeStateSchemas, TRootStateSchemas, TCurrentStateSchema>;
|
|
232
|
+
type RelativeSetupStateSchemas<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends RelativeSetupStateSchemasMarker<infer TRelativeStateSchemas> ? TRelativeStateSchemas : TStateSchemas;
|
|
233
|
+
type RootSetupStateSchemas<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends RootSetupStateSchemasMarker<infer TRootStateSchemas> ? TRootStateSchemas : TStateSchemas;
|
|
234
|
+
type CurrentSetupStateSchema<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends CurrentSetupStateSchemaMarker<infer TCurrentStateSchema> ? TCurrentStateSchema : never;
|
|
233
235
|
type SetupStateSelfSchema<TStateSchema extends SetupStateSchema> = TStateSchema extends {
|
|
234
236
|
schemas: infer TSchemas extends SetupStateSchemas;
|
|
235
237
|
} ? {
|
|
236
238
|
schemas: TSchemas;
|
|
237
239
|
} : {};
|
|
238
|
-
|
|
240
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
241
|
+
export type SetupStateParentTypeMarker<TParentStateType extends SetupStateType | never> = {
|
|
239
242
|
readonly [parentSetupStateType]: TParentStateType;
|
|
240
243
|
};
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
245
|
+
export type SetupStateSchemasWithParentType<TStateSchemas extends Record<string, SetupStateSchema>, TParentStateType extends SetupStateType | never> = TStateSchemas & SetupStateParentTypeMarker<TParentStateType>;
|
|
246
|
+
type SetupStateParentType<TStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas extends SetupStateParentTypeMarker<infer TParentStateType> ? TParentStateType : never;
|
|
244
247
|
type IsParallelSetupStateParent<TStateSchemas extends Record<string, SetupStateSchema>> = [SetupStateParentType<TStateSchemas>] extends [never] ? false : SetupStateParentType<TStateSchemas> extends 'parallel' ? true : false;
|
|
245
248
|
type ResolveStateSiblingsForPath<TStates extends Record<string, SetupStateSchema>, TPath extends string> = SetupStateParentAtPath<TStates, TPath> extends infer TParent ? [TParent] extends [SetupStateSchema] ? SetupStateSchemasWithParentType<ResolveStateSiblings<TStates, TPath>, TParent extends {
|
|
246
249
|
type: infer TType extends SetupStateType;
|
|
247
250
|
} ? TType : never> : ResolveStateSiblings<TStates, TPath> : never;
|
|
248
|
-
|
|
251
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
252
|
+
export type RootSetupStateSchemasMarker<TRootStateSchemas extends Record<string, SetupStateSchema>> = {
|
|
249
253
|
readonly [rootSetupStateSchemas]: TRootStateSchemas;
|
|
250
254
|
};
|
|
255
|
+
/** @public Referenced by emitted declarations of strict transition targets. */
|
|
256
|
+
export type WithRootSetupStateSchemas<TStateSchemas extends Record<string, SetupStateSchema>, TRootStateSchemas extends Record<string, SetupStateSchema>> = TStateSchemas & RootSetupStateSchemasMarker<TRootStateSchemas>;
|
|
251
257
|
type RootSetupStateTransitionSchemas<TStateSchemas extends Record<string, SetupStateSchema>> = StrictSetupStateSchemas<{}, TStateSchemas, TStateSchemas>;
|
|
252
258
|
type RootSetupStateTarget<TStateSchemas extends Record<string, SetupStateSchema>> = SetupRelativeStateTarget<TStateSchemas> | RootSetupStateIdTarget<TStateSchemas>;
|
|
253
259
|
type SetupStateTransitionChildSchemas<TStateSchema extends SetupStateSchema> = TStateSchema extends {
|
|
@@ -515,7 +521,8 @@ type RootContext<TContext> = typeof rootContext extends keyof TContext ? TContex
|
|
|
515
521
|
type StateContextShape<TStateSchema extends SetupStateSchema, TFallbackContext> = TStateSchema['schemas'] extends {
|
|
516
522
|
context: infer TContextSchema;
|
|
517
523
|
} ? TContextSchema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<TContextSchema> & RootContext<TFallbackContext> & RootContextMarker<TFallbackContext> : RootContext<TFallbackContext> : RootContext<TFallbackContext>;
|
|
518
|
-
|
|
524
|
+
/** @public Referenced by emitted declarations of narrowed state contexts. */
|
|
525
|
+
export type ActiveStateContext<TStateSchema extends SetupStateSchema, TRootContext extends MachineContext, TAncestorContext> = StateContext<TStateSchema, TRootContext> & TAncestorContext & MachineContext;
|
|
519
526
|
type ActiveStateContextShape<TStateSchema extends SetupStateSchema, TAncestorContext> = StateContextShape<TStateSchema, TAncestorContext> & TAncestorContext;
|
|
520
527
|
type WithNestedStates<TConfig, TNestedStates> = TConfig extends {
|
|
521
528
|
type: 'choice';
|
|
@@ -547,9 +554,7 @@ type SetupChoiceTargetConfig<TStateSchemas extends Record<string, SetupStateSche
|
|
|
547
554
|
[K in KnownSetupStateTarget<TStateSchemas>]: {
|
|
548
555
|
target: K;
|
|
549
556
|
} & SetupStateInputConfig<SetupStateSchemaAtTarget<TStateSchemas, K>, TContext, TEvent>;
|
|
550
|
-
}[KnownSetupStateTarget<TStateSchemas>] | (TStateSchemas extends {
|
|
551
|
-
readonly [strictSetupStateTargets]: true;
|
|
552
|
-
} ? {
|
|
557
|
+
}[KnownSetupStateTarget<TStateSchemas>] | (TStateSchemas extends StrictSetupStateTargetsFlag ? {
|
|
553
558
|
target: KnownSetupStateTarget<TStateSchemas>[];
|
|
554
559
|
input?: Record<string, unknown>;
|
|
555
560
|
} : {
|
|
@@ -980,9 +985,7 @@ type StateTransitionResult<TStateSchemas extends Record<string, SetupStateSchema
|
|
|
980
985
|
context: StateTransitionContext<TAllowContextMapper, TContext, TContextShape, StateContextShape<SetupStateSchemaAtTarget<TStateSchemas, K>, TContextShape>, StateContext<SetupStateSchemaAtTarget<TStateSchemas, K>, TContext>, TExpressionEvent, TChildren, TActionMap, TActorMap, TGuardMap, TDelayMap, TSystemRegistry>;
|
|
981
986
|
});
|
|
982
987
|
}[TKnownTarget] | {
|
|
983
|
-
target: TStateSchemas extends
|
|
984
|
-
readonly [strictSetupStateTargets]: true;
|
|
985
|
-
} ? never : Exclude<TTarget, TKnownTarget>;
|
|
988
|
+
target: TStateSchemas extends StrictSetupStateTargetsFlag ? never : Exclude<TTarget, TKnownTarget>;
|
|
986
989
|
context?: StateTransitionContext<TAllowContextMapper, TContext, TContextShape, TContextShape, TContext, TExpressionEvent, TChildren, TActionMap, TActorMap, TGuardMap, TDelayMap, TSystemRegistry>;
|
|
987
990
|
reenter?: boolean;
|
|
988
991
|
meta?: TMeta;
|
|
@@ -201,7 +201,8 @@ export interface InvokeDefinition<TContext extends MachineContext, TEvent extend
|
|
|
201
201
|
/** The transition to take when the invoke-level `timeout` expires. */
|
|
202
202
|
onTimeout?: string | SingleOrArray<TransitionConfig<TContext, ActorTimeoutEvent, TEvent, TEmitted, TMeta, TActionMap, TActorMap, TGuardMap, TDelayMap>>;
|
|
203
203
|
}
|
|
204
|
-
export type AnyInvokeDefinition = InvokeDefinition<MachineContext, EventObject, EventObject,
|
|
204
|
+
export type AnyInvokeDefinition = InvokeDefinition<MachineContext, EventObject, EventObject, any, // TMeta
|
|
205
|
+
Sources['actions'], Sources['actors'], Sources['guards'], Sources['delays']>;
|
|
205
206
|
type Delay<TDelay extends string> = TDelay | number;
|
|
206
207
|
export type DelayedTransitions<TContext extends MachineContext, TEvent extends EventObject, TEmitted extends EventObject, TMeta extends MetaObject, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays']> = {
|
|
207
208
|
[K in Delay<keyof TDelayMap & string>]?: string | SingleOrArray<TransitionConfig<TContext, TEvent, TEvent, TEmitted, TMeta, TActionMap, TActorMap, TGuardMap, TDelayMap>> | TransitionConfigFunction<TContext, TEvent, TEvent, TODO, any, any, any, any, any>;
|
|
@@ -235,7 +236,8 @@ type TransitionFunctionArgs<TContext, TCurrentEvent extends EventObject, TEvent
|
|
|
235
236
|
guards: TGuardMap;
|
|
236
237
|
delays: TDelayMap;
|
|
237
238
|
} & OutputArg<TCurrentEvent>;
|
|
238
|
-
export type AnyTransitionConfigFunction = TransitionConfigFunction<any, any, any, any, any, any, any, any, any, any
|
|
239
|
+
export type AnyTransitionConfigFunction = TransitionConfigFunction<any, any, any, any, any, any, any, any, any, any, any, // _TCtx
|
|
240
|
+
any>;
|
|
239
241
|
export type TransitionsConfig<TContext extends MachineContext, TEvent extends EventObject, TEmitted extends EventObject, TMeta extends MetaObject, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays']> = {
|
|
240
242
|
[K in EventDescriptor<TEvent>]?: TransitionConfigOrTarget<TContext, ExtractEvent<TEvent, K>, TEvent, TEmitted, TMeta, TActionMap, TActorMap, TGuardMap, TDelayMap>;
|
|
241
243
|
};
|
|
@@ -341,7 +343,11 @@ export type InvokeConfig<TContext extends MachineContext, TEvent extends EventOb
|
|
|
341
343
|
onTimeout?: string | SingleOrArray<TransitionConfigOrTarget<TContext, ActorTimeoutEvent, TEvent, TEmitted, TMeta, any, any, any, any>>;
|
|
342
344
|
};
|
|
343
345
|
export type AnyInvokeConfig = InvokeConfig<any, any, any, any, any, any, any, any>;
|
|
344
|
-
export type AnyStateNodeConfig = Next_StateNodeConfig<any, any, any, any, any, any, any, any, any, any, any, any
|
|
346
|
+
export type AnyStateNodeConfig = Next_StateNodeConfig<any, any, any, any, any, any, any, any, any, any, any, any, any, // TInput
|
|
347
|
+
any, // TInputMap
|
|
348
|
+
any, // TSystemRegistry
|
|
349
|
+
any, // TChildOutput
|
|
350
|
+
any>;
|
|
345
351
|
export type AnyStateNode = StateNode<any, any> | StateNode<never, EventObject> | StateNode<any, EventObject> | StateNode<never, any>;
|
|
346
352
|
type LoosenMachineSnapshot<TSnapshot> = TSnapshot extends MachineSnapshot<any, any, any, any, any, any, any, any> ? Omit<TSnapshot, 'matches' | 'can'> & {
|
|
347
353
|
matches(partialStateValue: StateValue): boolean;
|
|
@@ -319,7 +319,8 @@ type Next_RouteConfig<TContext extends MachineContext, TEvent extends EventObjec
|
|
|
319
319
|
});
|
|
320
320
|
type Next_ChoiceConfigFunction<TContext extends MachineContext, TCurrentEvent extends EventObject, TEvent extends EventObject, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays'], TMeta extends MetaObject, _TCtx extends MachineContext = [TContext] extends [never] ? any : TContext> = (args: Next_ChoiceArgs<TContext, TCurrentEvent, TEvent, TActionMap, TActorMap, TGuardMap, TDelayMap, _TCtx>) => Next_ChoiceTarget<TMeta>;
|
|
321
321
|
export type Next_StateNodeConfig<TContext extends MachineContext, TEvent extends EventObject, TDelays extends string, TTag extends string, _TOutput, TEmitted extends EventObject, TStateMeta extends MetaObject, TChildren extends Record<string, AnyActorRef | undefined>, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays'], TInput = Record<string, unknown> | undefined, TInputMap extends Record<string, unknown> = Record<string, unknown>, TSystemRegistry extends SystemRegistry = SystemRegistry, TChildOutput = unknown, TTransitionMeta extends MetaObject = TStateMeta> = Next_RegularStateNodeConfig<TContext, TEvent, TDelays, TTag, _TOutput, TEmitted, TStateMeta, TTransitionMeta, TChildren, TActionMap, TActorMap, TGuardMap, TDelayMap, TInput, TInputMap, TSystemRegistry, TChildOutput> | Next_ChoiceStateNodeConfig<TContext, TEvent, TTag, TStateMeta, TTransitionMeta, TActionMap, TActorMap, TGuardMap, TDelayMap>;
|
|
322
|
-
|
|
322
|
+
/** @public Referenced by emitted declarations of `Next_StateNodeConfig`. */
|
|
323
|
+
export interface Next_ChoiceStateNodeConfig<TContext extends MachineContext, TEvent extends EventObject, TTag extends string, TStateMeta extends MetaObject, TTransitionMeta extends MetaObject, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays']> {
|
|
323
324
|
contextSchema?: StandardSchemaV1;
|
|
324
325
|
schemas?: SetupStateSchemas;
|
|
325
326
|
type: 'choice';
|
|
@@ -347,7 +348,8 @@ interface Next_ChoiceStateNodeConfig<TContext extends MachineContext, TEvent ext
|
|
|
347
348
|
output?: never;
|
|
348
349
|
target?: never;
|
|
349
350
|
}
|
|
350
|
-
|
|
351
|
+
/** @public Referenced by emitted declarations of `Next_StateNodeConfig`. */
|
|
352
|
+
export interface Next_RegularStateNodeConfig<TContext extends MachineContext, TEvent extends EventObject, TDelays extends string, TTag extends string, TOutput, TEmitted extends EventObject, TStateMeta extends MetaObject, TTransitionMeta extends MetaObject, TChildren extends Record<string, AnyActorRef | undefined>, TActionMap extends Sources['actions'], TActorMap extends Sources['actors'], TGuardMap extends Sources['guards'], TDelayMap extends Sources['delays'], TInput = Record<string, unknown> | undefined, TInputMap extends Record<string, unknown> = Record<string, unknown>, TSystemRegistry extends SystemRegistry = SystemRegistry, TChildOutput = unknown> {
|
|
351
353
|
contextSchema?: StandardSchemaV1;
|
|
352
354
|
schemas?: SetupStateSchemas;
|
|
353
355
|
/** The initial state transition. */
|