Skip to content

resolveEventDef

const resolveEventDef: (schema, context) => Effect.Effect<Resolved, UnknownEventError>

Defined in: packages/@livestore/common/dist/schema/unknown-events.d.ts:46

Resolves the runtime event definition + materializer for a given event name.

Behaviour is intentionally split across the result and error channels:

  • For 'fail' handling, we surface an UnknownEventError via the failure channel so callers can convert it into the appropriate domain error (for example MaterializeError).
  • For all other strategies (warn, ignore, callback) we succeed with an { _tag: 'unknown' } value, signalling that the caller should skip the event while continuing normal processing.

LiveStoreSchema

ResolveContext

Effect.Effect<Resolved, UnknownEventError>