Represents a diff between two arrays.

Create a diff between arrays of QueryResultItem using a Differ.

Constructors

  • Parameters

    • cborData: Uint8Array

    Returns Diff

Properties

deletions: number[]

The set of indexes in the old array at which old items have been deleted.

insertions: number[]

The set of indexes in the new array at which new items have been inserted.

moves: {
    from: number;
    to: number;
}[]

A set of tuples each representing a move of an item from a particular index in the old array to a particular index in the new array.

updates: number[]

The set of indexes in the new array at which items have been updated.