Skip to content
Entangle UI v0.13.0

UsePropertyUndoReturn

Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:345

T = unknown

canRedo: boolean

Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:355

Whether redo is available


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

void


history: PropertyUndoEntry<T>[]

Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:357

Full undo history


record: (entry) => void

Defined in: src/components/editor/PropertyInspector/PropertyInspector.types.ts:347

Wrap a value change to record it in the undo stack

Omit<PropertyUndoEntry<T>, "timestamp">

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

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

PropertyUndoEntry<T> | null