Skip to content

oracular / EventRecord

Interface: EventRecord ​

Defined in: types.ts:439

One line of a recorder log: an event the app observed and what the engine decided right after it. The event (name and at, never props) is what replay recomputes from; the decisions are kept apart so they can never be mistaken for inputs.

Example ​

ts
state = observe(state, event);
log.append(JSON.stringify(createRecord(state, event, recording)));

Properties ​

PropertyTypeDescriptionDefined in
decisionsRecord<string, RecordedDecision>One entry per declared intent.types.ts:446
eventobject-types.ts:444
event.atnumber-types.ts:444
event.namestring-types.ts:444
installIdstring-types.ts:442
kind"event"-types.ts:441
modeRecordMode-types.ts:443
v1-types.ts:440

Released under the MIT License.