Composite
Composite:
Struct<{client:BrandSchema<number&Brand<"ClientEventSequenceNumber">,number,never>;global:BrandSchema<number&Brand<"GlobalEventSequenceNumber">,number,never>;rebaseGeneration: typeofInt; }> &object
Defined in: packages/@livestore/common/dist/schema/EventSequenceNumber/client.d.ts:33
Effect Schema for the composite event sequence number (global + client + rebaseGeneration).
Also includes a make helper for creating validated Composite values.
Type Declaration
Section titled “Type Declaration”make()
Section titled “make()”make: (
seqNum) =>Composite
Parameters
Section titled “Parameters”seqNum
Section titled “seqNum”Returns
Section titled “Returns”Example
Section titled “Example”const seqNum: EventSequenceNumber.Client.Composite = { global: EventSequenceNumber.Global.make(5), client: EventSequenceNumber.Client.DEFAULT, rebaseGeneration: 0}
const validated = EventSequenceNumber.Client.Composite.make({ global: 5, client: 0, rebaseGeneration: 0 })