Type alias ProjectorReducer<S, E, K>

ProjectorReducer<S, E, K>: ((event, map) => Promise<ProjectionPatch<S>[]>)

Type Parameters

Type declaration

    • (event, map): Promise<ProjectionPatch<S>[]>
    • Projector reducers apply events as "state patches" to the resulting projection map

      • event the committed event being projected
      • map a reference to the resulting projection map

      Parameters

      Returns Promise<ProjectionPatch<S>[]>

Generated using TypeDoc