UsePropertyUndoReturn
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:290
Type Parameters
T
T = unknown
Properties
canRedo
canRedo:
boolean
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:300
Whether redo is available
canUndo
canUndo:
boolean
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:298
Whether undo is available
clear()
clear: () =>
void
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:304
Clear all history
Returns
void
history
history:
PropertyUndoEntry<T>[]
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:302
Full undo history
record()
record: (
entry) =>void
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:292
Wrap a value change to record it in the undo stack
Parameters
entry
Omit<PropertyUndoEntry<T>, "timestamp">
Returns
void
redo()
redo: () =>
PropertyUndoEntry<T> |null
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:296
Redo the last undone change — returns the entry, or null
Returns
PropertyUndoEntry<T> | null
undo()
undo: () =>
PropertyUndoEntry<T> |null
Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:294
Undo the last change — returns the entry that was undone, or null
Returns
PropertyUndoEntry<T> | null