Interface SetValueUndoCommand<T, TS, TD, TP, TB>

Interface for a command that sets a value with a binding.

interface SetValueUndoCommand<
    T extends PrimitiveVal = PrimitiveVal,
    TS extends string = string,
    TD = any,
    TP extends SetValueUndoCommandProps<T> = SetValueUndoCommandProps<T>,
    TB = any,
> {
    binding?: [TB, keyof TB];
    final: boolean;
    lastVal: T;
    onUndoRedo?: (
        c: SetValueUndoCommand<
            PrimitiveVal,
            string,
            any,
            SetValueUndoCommandProps<PrimitiveVal>,
            any,
        >,
    ) => void;
    props: TP;
    time: number;
    type: TS;
    uid: TD;
    val: T;
}

Type Parameters

Hierarchy (View Summary)

Properties

binding?: [TB, keyof TB]
final: boolean
lastVal: T
onUndoRedo?: (
    c: SetValueUndoCommand<
        PrimitiveVal,
        string,
        any,
        SetValueUndoCommandProps<PrimitiveVal>,
        any,
    >,
) => void
props: TP
time: number
type: TS
uid: TD
val: T