Skip to content

Interface: ReactiveModelChangeEmitterEvent<T>

The events and the arguments their callbacks receive for the reactive model change emitter.

Type Parameters

Type Parameter
T extends PlainObject

Indexable

ts
[key: `change:${string}`]: [unknown, unknown]

Represents an event which emits the change for a specific property of the object

Properties

PropertyTypeDescription
error[unknown]Represents an event which is emitted when an error is thrown in one of the listeners

Events

EventTypeDescription
change[Partial<T>, | undefined | Partial<T>]Represents an event which emits the full list of reactive properties and their values for "is" and "was" when a change is detected for any property Type Param The type of the object being observed
delta[Record<StringKeyOf<T>, ReactiveModelChangeDelta<T, StringKeyOf<T>>>]Represents an event which emits only the changed properties and their values for "is" and "was" when a change is detected for any property Type Param The type of the object being observed Type Param The key of the property that changed