Options
All
  • Public
  • Public/Protected
  • All
Menu

Get diff patch between source and snapshot.

example

const source = { a: 1, b: 2 }; const snapshot = new Snapshot(source); source.a = 3; snapshot.getDiffPatch(); // => { a: 3 }

Type parameters

  • T: ObjectLike

Hierarchy

  • Snapshot

Index

Constructors

constructor

Properties

Readonly snapshots

snapshots: T[]

Methods

takeSnapshot

getDiffPatch

Generated using TypeDoc