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 DataStoreSeedsConstructor
new DataStoreSeeds(params: DataStoreSeedsConstructorParams)Creates a cache-seed publisher and reader.
Properties
| Property | Type | Description |
|---|---|---|
| local | LocalDataStore | Device-local identity and serialization boundary. |
| share | boolean | Whether this store shares cache seeds. |
| transport | DataStoreTransport | Store-scoped snapshot transport. |
Methods
| Method | Returns | Description |
|---|---|---|
| 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. |