MCPcopy Create free account
hub / github.com/Effect-TS/effect / isEventTag

Function isEventTag

packages/effect/src/unstable/eventlog/EventLog.ts:590–590  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

588 events: Object.keys(group.events),
589 effect: Effect.fnUntraced(function*({ entries, write }): Effect.fn.Return<void> {
590 const isEventTag = (tag: string): tag is Event.Tag<Events> => Object.hasOwn(group.events, tag)
591 const decodePayload = <Tag extends Event.Tag<Events>>(tag: Tag, payload: Uint8Array) =>
592 Schema.decodeUnknownEffect(group.events[tag].payloadMsgPack)(payload).pipe(
593 Effect.updateContext((input) => Context.merge(services, input)),

Callers 1

groupCompactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected