Skip to content

Interface: PropertyEvent

A change the store applied to its cache.

Properties

device

device: string

The device the change applies to.


message?

optional message?: string | null

The explanation a delProperty carried, if any.

Only a del sets this: a def or set keeps its message on the vector, whereas a deletion has no vector to keep anything on, and the text is often the only account of why the property went away.


name

name: string | null

The property name, or null for a whole-device del.


timestamp?

optional timestamp?: string | null

When a delProperty said the retraction happened, if it said. Carried for the same reason as message; null for a def or set, whose vector is already stamped.


type

type: EventType

"def", "set", or "del".


vector

vector: Vector | null

The affected (post-merge) vector, or null for a del.