Hyperlinkv0.8.0-beta.28

HistoryStore

HistoryStore.HistoryStoreShapeinterfacesrc/HistoryStore.ts:41

The service shape: append an (already-encoded) entry to a stream, and read a stream back. Entries are opaque (unknown) — callers encode/decode with their own schema; the store just persists.

models
export interface HistoryStoreShape {
  readonly append: (streamId: string, entry: unknown) => Effect.Effect<void>;
  readonly read: (
    streamId: string,
    options?: HistoryReadOptions,
  ) => Effect.Effect<ReadonlyArray<unknown>>;
}
Referenced by 1 symbols