Skip to content

DefineEventOptions

DefineEventOptions<TTo, TDerived> = object

Defined in: packages/@livestore/common/dist/schema/EventDef.d.ts:61

TTo

TDerived extends boolean = false

optional clientOnly: boolean

Defined in: packages/@livestore/common/dist/schema/EventDef.d.ts:76

When set to true, the event won’t be synced over the network


optional derived: TDerived

Defined in: packages/@livestore/common/dist/schema/EventDef.d.ts:77


optional facts: (args, currentFacts) => object

Defined in: packages/@livestore/common/dist/schema/EventDef.d.ts:63

Warning: This feature is not fully implemented yet

TTo

EventDefFacts

optional modify: object

optional set: Iterable<EventDefFactInput>

optional unset: Iterable<EventDefFactInput>

optional require: Iterable<EventDefFactInput>

Two purposes: constrain history and constrain compaction