Squash a collection of diffs into a single diff.

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

diffs

RecordsDiff<T>[]

An array of diffs to squash.

Returns
RecordsDiff<T>

A single diff that represents the squashed diffs.

reverseRecordsDiffuseMultiplayerDemo