RecordsDiff

Public TypeAlias

A diff describing the changes to a record.

Signature
type RecordsDiff<R extends UnknownRecord> = {
  added: Record<IdOf<R>, R>
  updated: Record<IdOf<R>, [from: R, to: R]>
  removed: Record<IdOf<R>, R>
}
References

UnknownRecord, Record, IdOf

Edit this page
Last edited on 25 May 2023
MigrationsRecordType