Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias DatasetProof

    What a collection's load result carries so the worker can tell it holds every item the server sent. This is the ordered proof: a hash of the whole array in its order. SetProof is the order-independent one a dataset uses.

    type DatasetProof = {
        count: number;
        digest: string;
        kind?: "ordered";
    }
    Index
    count: number

    number of items in the collection

    digest: string

    hash of the collection's canonical JSON

    kind?: "ordered"

    ordered; absent on every proof made before the set proof existed