xstate 5.19.1 → 5.19.2
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.
|
@@ -248,8 +248,8 @@ export type InvokeConfig<TContext extends MachineContext, TEvent extends EventOb
|
|
|
248
248
|
onDone?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneActorEvent<any>, // TODO: consider replacing with `unknown`
|
|
249
249
|
TEvent, TActor, TAction, TGuard, TDelay, TEmitted, TMeta>>;
|
|
250
250
|
/**
|
|
251
|
-
* The transition to take upon the invoked child machine sending an
|
|
252
|
-
* event.
|
|
251
|
+
* The transition to take upon the invoked child machine sending an
|
|
252
|
+
* error event.
|
|
253
253
|
*/
|
|
254
254
|
onError?: string | SingleOrArray<TransitionConfigOrTarget<TContext, ErrorActorEvent, TEvent, TActor, TAction, TGuard, TDelay, TEmitted, TMeta>>;
|
|
255
255
|
onSnapshot?: string | SingleOrArray<TransitionConfigOrTarget<TContext, SnapshotEvent, TEvent, TActor, TAction, TGuard, TDelay, TEmitted, TMeta>>;
|
|
@@ -340,7 +340,7 @@ export interface StateNodeConfig<TContext extends MachineContext, TEvent extends
|
|
|
340
340
|
/** A text description of the state node */
|
|
341
341
|
description?: string;
|
|
342
342
|
/** A default target for a history state */
|
|
343
|
-
target?: string;
|
|
343
|
+
target?: string | undefined;
|
|
344
344
|
}
|
|
345
345
|
export type AnyStateNodeConfig = StateNodeConfig<any, any, any, any, any, any, any, any, any, // emitted
|
|
346
346
|
any>;
|
|
@@ -462,7 +462,7 @@ export type UnknownMachineConfig = MachineConfig<MachineContext, EventObject>;
|
|
|
462
462
|
export interface ProvidedActor {
|
|
463
463
|
src: string;
|
|
464
464
|
logic: UnknownActorLogic;
|
|
465
|
-
id?: string;
|
|
465
|
+
id?: string | undefined;
|
|
466
466
|
}
|
|
467
467
|
export interface SetupTypes<TContext extends MachineContext, TEvent extends EventObject, TChildrenMap extends Record<string, string>, TTag extends string, TInput, TOutput, TEmitted extends EventObject, TMeta extends MetaObject> {
|
|
468
468
|
context?: TContext;
|