Target
@rotorsoft/act-root / act/src / Target
Type Alias: Target<TActor>
Target<
TActor> =object
Defined in: libs/act/src/types/action.ts:55
Target specification for action execution.
Identifies which state instance (stream) should process the action and who is performing it. The target combines the stream identifier with actor context for complete audit trail.
Example
Basic target
const target: Target = {
stream: "user-123",
actor: { id: "admin", name: "Admin User" }
};
await app.do("updateProfile", target, { email: "new@example.com" });
Type Parameters
TActor
Actor type extending base Actor (default: Actor)
Properties
actor
readonlyactor:TActor
Defined in: libs/act/src/types/action.ts:57
expectedVersion?
readonlyoptionalexpectedVersion?:number
Defined in: libs/act/src/types/action.ts:58
stream
readonlystream:string
Defined in: libs/act/src/types/action.ts:56