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

Function layer

packages/effect/src/unstable/eventlog/EventLog.ts:994–1004  ·  view source on GitHub ↗
(
  _schema: EventLogSchema<Groups>,
  layer: Layer.Layer<EventGroup.ToService<Groups>, E, R>
)

Source from the content-addressed store, hash-verified

992 * @since 4.0.0
993 */
994export const layer = <Groups extends EventGroup.Any, E, R>(
995 _schema: EventLogSchema<Groups>,
996 layer: Layer.Layer<EventGroup.ToService<Groups>, E, R>
997): Layer.Layer<
998 EventLog | Registry,
999 E,
1000 Exclude<R, EventLog | Registry> | EventJournal | Identity
1001> =>
1002 layer.pipe(
1003 Layer.provideMerge(layerEventLog)
1004 )
1005
1006/**
1007 * Creates a typed client function for writing events defined by an

Callers

nothing calls this directly

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected