MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeHandlers

Function makeHandlers

packages/experimental/src/EventLog.ts:232–236  ·  view source on GitHub ↗
(options: {
  readonly group: EventGroup.AnyWithProps
  readonly handlers: Record.ReadonlyRecord<string, Handlers.Item<any>>
  readonly context: Context.Context<any>
})

Source from the content-addressed store, hash-verified

230}
231
232const makeHandlers = <Events extends Event.Any>(options: {
233 readonly group: EventGroup.AnyWithProps
234 readonly handlers: Record.ReadonlyRecord<string, Handlers.Item<any>>
235 readonly context: Context.Context<any>
236}): Handlers<never, Events> => Object.assign(Object.create(handlersProto), options)
237
238/**
239 * @since 1.0.0

Callers 2

handleFunction · 0.70
groupFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…