Skip to main content
Version: Current

Projection

@rotorsoft/act-root


@rotorsoft/act-root / act/src / Projection

Type Alias: Projection<TEvents>

Projection<TEvents> = object

Defined in: libs/act/src/types/builders.ts:1077

A self-contained projection grouping read-model update handlers. Projections are composed into an Act orchestrator via act().withProjection(projection).

Type Parameters​

TEvents​

TEvents extends Schemas

Event schemas handled by this projection

Properties​

_tag​

readonly _tag: "Projection"

Defined in: libs/act/src/types/builders.ts:1078


batchHandler?​

readonly optional batchHandler?: BatchHandler<TEvents>

Defined in: libs/act/src/types/builders.ts:1081


events​

readonly events: EventRegister<TEvents>

Defined in: libs/act/src/types/builders.ts:1079


target?​

readonly optional target?: string

Defined in: libs/act/src/types/builders.ts:1080