Skip to content

EventDefRecord

EventDefRecord = object

Defined in: packages/@livestore/common/dist/schema/EventDef/event-def.d.ts:103

Plain object record of event definitions keyed by name. This is the typical shape when defining events in user code.

[name: string]: Any

const events = {
todoCreated: Events.synced({ name: 'v1.TodoCreated', schema: ... }),
todoDeleted: Events.synced({ name: 'v1.TodoDeleted', schema: ... }),
} satisfies EventDefRecord