UsePropertyUndoReturn
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:345
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”canRedo
Section titled “canRedo”canRedo:
boolean
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:355
Whether redo is available
canUndo
Section titled “canUndo”canUndo:
boolean
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:353
Whether undo is available
clear: () =>
void
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:359
Clear all history
Returns
Section titled “Returns”void
history
Section titled “history”history:
PropertyUndoEntry<T>[]
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:357
Full undo history
record
Section titled “record”record: (
entry) =>void
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:347
Wrap a value change to record it in the undo stack
Parameters
Section titled “Parameters”Omit<PropertyUndoEntry<T>, "timestamp">
Returns
Section titled “Returns”void
redo: () =>
PropertyUndoEntry<T> |null
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:351
Redo the last undone change — returns the entry, or null
Returns
Section titled “Returns”PropertyUndoEntry<T> | null
undo: () =>
PropertyUndoEntry<T> |null
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:349
Undo the last change — returns the entry that was undone, or null
Returns
Section titled “Returns”PropertyUndoEntry<T> | null