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.
Index Signature
Section titled “Index Signature”[name: string]: Any
Example
Section titled “Example”const events = { todoCreated: Events.synced({ name: 'v1.TodoCreated', schema: ... }), todoDeleted: Events.synced({ name: 'v1.TodoDeleted', schema: ... }),} satisfies EventDefRecord