Skip to content

ForSchema

ForSchema<TSchema> = { [K in keyof TSchema["_EventDefMapType"]]: InputDecoded<TSchema["_EventDefMapType"][K]> }[keyof TSchema["_EventDefMapType"]]

Defined in: packages/@livestore/common/dist/schema/LiveStoreEvent/input.d.ts:22

Union of all input event types for a given schema (type-safe event discrimination).

TSchema extends LiveStoreSchema