@nkeff/cardboard-js
    Preparing search index...

    Interface DiffEntry<T>

    Represents a single entry in the diff process. This interface is used to describe the state of an entry in the diff process, including its index, the entry itself, and optionally the target entry and target index if it was swapped.

    interface DiffEntry<T = unknown> {
        entry: T;
        index: number;
        state: DiffState;
        targetEntry?: T;
        targetIndex?: number;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    entry

    entry: T

    The entry itself.

    index: number

    The index of the entry in the old data.

    state: DiffState

    The state of the entry in the diff process.

    targetEntry?: T

    The target entry if the entry was swapped

    targetIndex?: number

    The index of the target entry if the entry was swapped.