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

/** @sealed */
export type RevertibleFactory = (onRevertibleDisposed?: (revertible: Revertible) => void) => Revertible;