xstate 4.35.1 → 4.35.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.
- package/README.md +3 -2
- package/es/types.d.ts +2 -2
- package/lib/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,7 +63,7 @@ toggleService.send('TOGGLE');
|
|
|
63
63
|
- [Why? (info about statecharts)](#why)
|
|
64
64
|
- [Installation](https://xstate.js.org/docs/guides/installation.html)
|
|
65
65
|
- [Finite State Machines](#finite-state-machines)
|
|
66
|
-
- [Hierarchical (Nested) State Machines](#hierarchical
|
|
66
|
+
- [Hierarchical (Nested) State Machines](#hierarchical--nested--state-machines)
|
|
67
67
|
- [Parallel State Machines](#parallel-state-machines)
|
|
68
68
|
- [History States](#history-states)
|
|
69
69
|
|
|
@@ -83,7 +83,8 @@ Read [📽 the slides](http://slides.com/davidkhourshid/finite-state-machines) (
|
|
|
83
83
|
- [The World of Statecharts](https://statecharts.github.io/) by Erik Mogensen
|
|
84
84
|
- [Pure UI](https://rauchg.com/2015/pure-ui) by Guillermo Rauch
|
|
85
85
|
- [Pure UI Control](https://medium.com/@asolove/pure-ui-control-ac8d1be97a8d) by Adam Solove
|
|
86
|
-
- [
|
|
86
|
+
- [Stately Discord](https://discord.gg/xstate) chat about anything related to statecharts and XState
|
|
87
|
+
- [GitHub Discussions](https://github.com/statelyai/xstate/discussions)
|
|
87
88
|
|
|
88
89
|
## Finite State Machines
|
|
89
90
|
|
package/es/types.d.ts
CHANGED
|
@@ -285,11 +285,11 @@ export interface InvokeConfig<TContext, TEvent extends EventObject> {
|
|
|
285
285
|
/**
|
|
286
286
|
* The transition to take upon the invoked child machine reaching its final top-level state.
|
|
287
287
|
*/
|
|
288
|
-
onDone?: string | SingleOrArray<
|
|
288
|
+
onDone?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
|
|
289
289
|
/**
|
|
290
290
|
* The transition to take upon the invoked child machine sending an error event.
|
|
291
291
|
*/
|
|
292
|
-
onError?: string | SingleOrArray<
|
|
292
|
+
onError?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
|
|
293
293
|
/**
|
|
294
294
|
* Meta data related to this invocation
|
|
295
295
|
*/
|
package/lib/types.d.ts
CHANGED
|
@@ -285,11 +285,11 @@ export interface InvokeConfig<TContext, TEvent extends EventObject> {
|
|
|
285
285
|
/**
|
|
286
286
|
* The transition to take upon the invoked child machine reaching its final top-level state.
|
|
287
287
|
*/
|
|
288
|
-
onDone?: string | SingleOrArray<
|
|
288
|
+
onDone?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
|
|
289
289
|
/**
|
|
290
290
|
* The transition to take upon the invoked child machine sending an error event.
|
|
291
291
|
*/
|
|
292
|
-
onError?: string | SingleOrArray<
|
|
292
|
+
onError?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
|
|
293
293
|
/**
|
|
294
294
|
* Meta data related to this invocation
|
|
295
295
|
*/
|