squashRecordDiffs

See source code

Squash a collection of diffs into a single diff.

function squashRecordDiffs<T extends UnknownRecord>(
  diffs: RecordsDiff<T>[]
): RecordsDiff<T>

Parameters

NameDescription

diffs

An array of diffs to squash.

Returns

A single diff that represents the squashed diffs.

Prev
reverseRecordsDiff
Next
useSync