Function
layer
(
_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 | */ |
| 994 | export 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
Tested by
no test coverage detected