@tempots/std

ArrayDiffOperations type

Represents the different operations that can be performed on an array.

Signature:

export type ArrayDiffOperations = {
    removals: Array<{
        at: number;
        qt: number;
    }>;
    swaps: Array<{
        from: number;
        to: number;
    }>;
    inserts: Array<{
        at: number;
        values: T[];
    }>;
};