Interface ReadonlyEventStore<K, V, QueryExt>

A read-only event store.

interface ReadonlyEventStore {
    entries(options?): SyncOrAsyncGenerator<[K, V], K[]>;
    get(key, options?): MaybePromise<undefined | V>;
    getKey(value, options?): MaybePromise<K>;
    getMany(keys, options?): MaybeAsyncIterableIterator<undefined | V>;
    has(key, options?): MaybePromise<boolean>;
    hasMany(keys, options?): MaybeAsyncIterableIterator<boolean>;
    keys(options?): SyncOrAsyncGenerator<K, K[]>;
    validate(value, options?): MaybePromise<undefined | Error>;
    values(options?): SyncOrAsyncGenerator<V, K[]>;
}

Type Parameters

  • K = ContentId

  • V = unknown

  • QueryExt extends object = NonNullable<unknown>

Hierarchy

Methods

Generated using TypeDoc