Skip to content

@vttforge/types / AnyActorLike

Type Alias: AnyActorLike ​

AnyActorLike = ActorLike<unknown, ItemLike<unknown>>

Any actor, whatever its schema and item type.

ActorLike defaults System to an open record, and a class instance is not an open record. So a parameter typed ActorLike rejects an actor whose system came from a data model class. Use this where a call only passes the actor along and never reads its schema.

MIT licensed.