A class that represents a changeset for a given data object. It uses Immer to create a draft of the data object and track changes made to it. The changes can be applied, reverted, validated, and saved.

Type Parameters

  • T extends Record<string, any> = Record<string, any>

Implements

Constructors

Properties

data: T

The data object. Read-only.

draftData: T
eventEmitter: default<ImmerChangeset<T>, T> = ...
innerErrors: Record<string, ValidationError> = {}
inversePatches: Patch[] = []
patches: Patch[] = []

Accessors

Methods