typedProps
typedProps<
T>(behavior):Props<T>
Defined in: src/typed/spawn.ts:15
Wrap a Behavior<T> in Props<T> so it can be passed to any
OO spawn API (e.g. ClusterSharding.start, ClusterSingleton.start,
Props.create consumers).
For the common case of spawning a top-level or child typed actor,
prefer system.spawnTyped(behavior, name) /
system.spawnTypedAnonymous(behavior) (or the same pair on
ActorContext) — they call this helper internally.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”behavior
Section titled “behavior”Behavior<T>
Returns
Section titled “Returns”Props<T>