PatchCallback<T>: ((patches, info) => void)

Callback which is called by various methods in this library to notify the user of what changes have been made.

Type Parameters

  • T

Type declaration

    • (patches, info): void
    • Parameters

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

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

      Returns void