@automerge/automerge - v3.0.0
    Preparing search index...

    Type Alias PatchCallback<T>

    PatchCallback: (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.

    Type Parameters

    • T

    Type declaration

      • (patches: Patch[], info: PatchInfo<T>): 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