Skip to content

EventDef

EventDef<TName, TType, TEncoded, TDerived> = object

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

TName extends string

TType

TEncoded = TType

TDerived extends boolean = false

EventDef(args): object

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

Helper function to construct a partial event

TType

object

args: TType

name: TName

encoded: (args) => object

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

Helper function to construct a partial encoded event

TEncoded

object

args: TEncoded

name: TName


readonly Event: object

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

args: TType

name: TName


name: TName

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


options: object

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

clientOnly: boolean

When set to true, the mutation won’t be synced across clients but

derived: TDerived

facts: FactsCallback<TType> | undefined

Warning: This feature is not fully implemented yet


schema: Schema<TType, TEncoded>

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