-
-
Notifications
You must be signed in to change notification settings - Fork 611
/
xstate+4.26.1.patch
31 lines (31 loc) · 1.53 KB
/
xstate+4.26.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/node_modules/xstate/lib/types.d.ts b/node_modules/xstate/lib/types.d.ts
index 42b58c8..aed68ac 100644
--- a/node_modules/xstate/lib/types.d.ts
+++ b/node_modules/xstate/lib/types.d.ts
@@ -34,7 +34,7 @@ export interface ActionObject<TContext, TEvent extends EventObject> extends Base
/**
* The implementation for executing the action.
*/
- exec?: ActionFunction<TContext, TEvent>;
+ exec?: ActionFunction<TContext, TEvent> | undefined;
}
export declare type DefaultContext = Record<string, any> | undefined;
export declare type EventData = Record<string, any> & {
@@ -106,7 +106,7 @@ export interface TransitionConfig<TContext, TEvent extends EventObject> {
actions?: Actions<TContext, TEvent>;
in?: StateValue;
internal?: boolean;
- target?: TransitionTarget<TContext, TEvent>;
+ target?: TransitionTarget<TContext, TEvent> | undefined;
meta?: Record<string, any>;
description?: string;
}
@@ -345,7 +345,7 @@ export interface StateNodeConfig<TContext, TStateSchema extends StateSchema, TEv
*
* This is equivalent to defining a `[done(id)]` transition on this state node's `on` property.
*/
- onDone?: string | SingleOrArray<TransitionConfig<TContext, DoneEventObject>>;
+ onDone?: string | SingleOrArray<TransitionConfig<TContext, DoneEventObject>> | undefined;
/**
* The mapping (or array) of delays (in milliseconds) to their potential transition(s).
* The delayed transitions are taken after the specified delay in an interpreter.