sej
    Preparing search index...

    Type Alias Command

    Command: {
        id: number;
        inMemory: boolean;
        json: CommandJSON | undefined;
        name: string;
        type: string;
        updatable: boolean;
        execute(...args: any[]): void;
        undo(): void;
    } & EditorPointer & SerializableObject & Test

    Type declaration

    • id: number

      Unique id of the command

    • inMemory: boolean

      Whether the command is in memory.

    • json: CommandJSON | undefined
    • name: string

      Human readable name of the command

    • type: string

      Type of the command

    • updatable: boolean

      Whether the command is updatable.

      If the command is NOT updatable, it's added as a new part of the history

    • execute: function
      • Execute the command, if possible.

        Parameters

        • ...args: any[]

        Returns void

        If the command is executed successfully, return void. Otherwise, throw an error.

    • undo: function
      • Undo the command.

        Returns void

        If the command is executed successfully, return void. Otherwise, throw an error.