@mocanvas/editor · interface

TLHistoryDiff

interface TLHistoryDiff

One recorded change on the undo stack.

diff is reversible on its own: undo applies the inverse, redo applies it again. Nothing else about the change is retained, deliberately — a diff that remembered which command produced it would tempt callers into replaying the command instead of the diff.


Properties · 2

diff: RecordsDiff<EditorRecord>
type: "diff"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.