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

Function makeAddService

packages/effect/src/internal/differ/contextPatch.ts:74–82  ·  view source on GitHub ↗
(
  key: string,
  service: T
)

Source from the content-addressed store, hash-verified

72})
73
74const makeAddService = <Env, I, T>(
75 key: string,
76 service: T
77): Differ.Context.Patch<Env, Env | I> => {
78 const o = Object.create(AddServiceProto)
79 o.key = key
80 o.service = service
81 return o
82}
83
84/** @internal */
85export interface RemoveService<in out Env, in out I> extends Differ.Context.Patch<Env, Exclude<Env, I>> {

Callers 1

diffFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…