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

Function makeUpdateService

packages/effect/src/internal/differ/contextPatch.ts:113–121  ·  view source on GitHub ↗
(
  key: string,
  update: (service: T) => T
)

Source from the content-addressed store, hash-verified

111})
112
113const makeUpdateService = <Env, I, T>(
114 key: string,
115 update: (service: T) => T
116): Differ.Context.Patch<Env | I, Env | I> => {
117 const o = Object.create(UpdateServiceProto)
118 o.key = key
119 o.update = update
120 return o
121}
122
123type Instruction =
124 | Empty<any, any>

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…