Packages > @fluidframework/tree >
RevertibleFactory
Factory for creating a Revertible
. Will error if invoked outside the scope of the commitApplied
event that provides it, or if invoked multiple times.
Signature
export type RevertibleFactory = (onRevertibleDisposed?: (revertible: Revertible) => void) => Revertible;