Type alias PatchCallback<T>

PatchCallback<T>: ((patches: Patch[], info: PatchInfo<T>) => void)

Type Parameters

  • T

Type declaration

    • (patches: Patch[], info: PatchInfo<T>): void
    • Callback which is called by various methods in this library to notify the user of what changes have been made.

      Parameters

      • patches: Patch[]
      • info: PatchInfo<T>

        An object that has the "before" and "after" document state, and the "from" and "to" heads

      Returns void

Generated using TypeDoc