Class SetProperty<T, S>

An undoable command that changes the value of an object property.

Type Parameters

  • T

    The type of the object to change

  • S extends keyof T

    The property of T to set

Hierarchy

Constructors

Properties

mementoValue: undefined | T[S]
newvalue: T[S]
obj: T
prop: S
status: CmdStatus

The state of the command.

Methods

  • Actions may need to create a memento before their first execution. This is the goal of the operation that should be overridden. This operator is called a single time before the first execution of the command.

    Returns void

Generated using TypeDoc