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

    Type Alias ApplyOptions

    what applyChanges may be given besides the rows and the response

    type ApplyOptions = {
        hash?: (key: string, row: DatasetRow) => Promise<string>;
        hashes?: ReadonlyMap<string, string>;
    }
    Index
    hash?: (key: string, row: DatasetRow) => Promise<string>

    the row hash function; rowHash when absent

    hashes?: ReadonlyMap<string, string>

    the hash of every row in rows; a replaced or deleted row then costs no hash of its old copy