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
+14-12
Original file line number
Diff line number
Diff line change
@@ -2348,19 +2348,21 @@ export type ToChildren<TActor extends ProvidedActor> =
2348
2348
// or maybe even `TActor["logic"]` since it's possible to configure `{ src: string; logic: SomeConcreteLogic }`
2349
2349
// TODO: consider adding `| undefined` here
2350
2350
Record<string,AnyActorRef>
2351
-
: ToConcreteChildren<TActor>&
2352
-
{
2353
-
include: {
2354
-
[id: string]: TActorextendsany
2355
-
? ActorRefFrom<TActor['logic']>|undefined
2356
-
: never;
2357
-
};
2358
-
exclude: {};
2359
-
}[undefinedextendsTActor['id']// if not all actors have literal string IDs then we need to create an index signature containing all possible actor types
2360
-
? 'include'
2361
-
: stringextendsTActor['id']
2351
+
: Compute<
2352
+
ToConcreteChildren<TActor>&
2353
+
{
2354
+
include: {
2355
+
[id: string]: TActorextendsany
2356
+
? ActorRefFrom<TActor['logic']>|undefined
2357
+
: never;
2358
+
};
2359
+
exclude: {};
2360
+
}[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