InstrumentedEvent<EM extends EventMapBase = EventMapBase>

interface
types.ts:379

A single observed event delivered to an InstrumentationObserver.

Type parameters

NameTypeDescription
EMextends EventMapBaseEvent map.

Properties

NameTypeDescription
atnumberWhen the store processed the event, in epoch milliseconds from StoreSpec.clock.
changedPathsstring[]Dotted **leaf** paths that changed, prefixed with the slice name (e.g. "todos.items.0.title"). Empty when nothing changed. These are the exact paths the store computed while reducing, no re-diff required.
committedbooleantrue if the event passed middleware and ran reducers; false if vetoed.
event{ channel: string; depth?: number; id: string; meta?: Readonly<Record<string, unknown>>; parentId?: string; payload: unknown; type: string }The processed event, including its id, any EventMeta the emitter attached, and its place in a causal chain. meta, parentId and depth are absent unless the event has them, as on Event.
nextValuesRecord<string, unknown>New value at each changed path, keyed by path.
prevValuesRecord<string, unknown>Old value at each changed path, keyed by path.
reason?NotCommittedReasonWhy the event did not commit. Absent when it did.
reduceTimeMsnumberMilliseconds spent in the synchronous reduce phase for this event.
rejected?RejectionPresent when a reducer refused the write, carrying its reason.
vetoedBy?stringWhich middleware vetoed, when one did and it had a name.