Skip to content

projections

API reference for projections

@delta-base/toolkit


const projections: object

Helper namespace for projection registration

inline(items, config?): InlineProjectionRegistration

Register projections for inline (synchronous) execution.

Accepts:

  • Declarative projections (from singleStreamProjection / multiStreamProjection)
  • InlineProjection<TEvent> instances (with optional lastProcessedPosition / catchUp)
  • Plain Projection<TEvent> instances (no catch-up)

(InlineProjectionHandler<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>> | InlineProjection<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>> | Projection<Readonly<{ data: EventData; metadata?: PlatformEventMetadata; tags?: string[]; type: string; }>>)[]

Array of projections to register

InlineProjectionConfig

Optional error handling configuration

InlineProjectionRegistration

InlineProjectionRegistration for use with getEventStore()