Type Alias JSUndoManagerCommand2

JSUndoManagerCommand2: { label?: string; type: string }

Command interface for JSUndoManager with a type field.

This is used for commands that can be preset or predefined, allowing for easier management of commands.

Type declaration

  • Optionallabel?: string

    What the step is called in an undo history. Optional; a preset may also supply one.

  • type: string