Function withoutUndo

  • Globally skips the undo recording mechanism for the code block that gets run synchronously inside. Consider using the withoutUndo method of a particular UndoManager instead.

    Type Parameters

    • T

    Parameters

    • fn: (() => T)

      Code block to run.

        • (): T
        • Returns T

    Returns T

    The value returned by the code block.

    T Code block return type.