You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/core/src/types.ts
+13-15
Original file line number
Diff line number
Diff line change
@@ -295,7 +295,7 @@ export type Actions<
295
295
exporttypeStateKey=string|AnyMachineSnapshot;
296
296
297
297
exportinterfaceStateValueMap{
298
-
[key: string]: StateValue;
298
+
[key: string]: StateValue|undefined;
299
299
}
300
300
301
301
/**
@@ -2352,21 +2352,19 @@ export type ToChildren<TActor extends ProvidedActor> =
2352
2352
// or maybe even `TActor["logic"]` since it's possible to configure `{ src: string; logic: SomeConcreteLogic }`
2353
2353
// TODO: consider adding `| undefined` here
2354
2354
Record<string,AnyActorRef>
2355
-
: Compute<
2356
-
ToConcreteChildren<TActor>&
2357
-
{
2358
-
include: {
2359
-
[id: string]: TActorextendsany
2360
-
? ActorRefFrom<TActor['logic']>|undefined
2361
-
: never;
2362
-
};
2363
-
exclude: {};
2364
-
}[undefinedextendsTActor['id']// if not all actors have literal string IDs then we need to create an index signature containing all possible actor types
2355
+
: ToConcreteChildren<TActor>&
2356
+
{
2357
+
include: {
2358
+
[id: string]: TActorextendsany
2359
+
? ActorRefFrom<TActor['logic']>|undefined
2360
+
: never;
2361
+
};
2362
+
exclude: {};
2363
+
}[undefinedextendsTActor['id']// if not all actors have literal string IDs then we need to create an index signature containing all possible actor types
0 commit comments