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

    Interface ResultStoreAdapter

    The two things a place to keep results must do. The list is kept whole: the store reads it, migrates the results it knows and writes it back with anything else the list held — a result of a newer version, a record of another app's under the same key — left exactly as it was, so nothing is ever lost on a write. Only what is a result is ever listed.

    interface ResultStoreAdapter {
        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 result (GameResult, at the current version) and, unchanged, whatever else was there