Skip to content

EventDef

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

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

TName extends string

TType

TEncoded = TType

TDerived extends boolean = false

EventDef(args): object

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

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:30

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:34

args: TType

name: TName


name: TName

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


options: object

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

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:14