Hiyve Components - v1.0.0
    Preparing search index...

    Interface CollectionStoreAdapter

    The two things a place to keep collections must do. The list is kept whole: the collections the store knows are brought up to this version and written back, and anything else the list held is left exactly as it was.

    interface CollectionStoreAdapter {
        read: () => Promise<unknown[]>;
        write: (items: unknown[]) => Promise<void>;
    }
    Index

    Properties

    Properties

    read: () => Promise<unknown[]>

    Everything kept, in any order, as it was written

    write: (items: unknown[]) => Promise<void>

    Replace everything kept with this list: every collection (Collection, at the current version) and, unchanged, whatever else was there