resolveEventDef
constresolveEventDef: (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 anUnknownEventErrorvia the failure channel so callers can convert it into the appropriate domain error (for exampleMaterializeError). - 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.
Parameters
Section titled “Parameters”schema
Section titled “schema”context
Section titled “context”Returns
Section titled “Returns”Effect.Effect<Resolved, UnknownEventError>