Skip to content

DataStoreSeeds

Optional performance hints. Seeds are never authoritative state and must be validated before reuse.

Import:

import { DataStoreSeeds } from '@mnaoumov/obsidian-lib/data-stores/data-store-seeds';

Signature:

export class DataStoreSeeds

Constructor

new DataStoreSeeds(params: DataStoreSeedsConstructorParams)

Creates a cache-seed publisher and reader.

Properties

PropertyTypeDescription
localLocalDataStoreDevice-local identity and serialization boundary.
sharebooleanWhether this store shares cache seeds.
transportDataStoreTransportStore-scoped snapshot transport.

Methods

MethodReturnsDescription
publish(entries)Promise<boolean>Publishes a bounded seed, replacing only this device's earlier publications.
readLatest()Promise<DataStoreSeedEntry[] | null>Reads the newest complete seed for this transport's schema.