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

Function annotateContext

packages/platform/src/HttpApi.ts:223–231  ·  view source on GitHub ↗
(this: HttpApi.AnyWithProps, context: Context.Context<any>)

Source from the content-addressed store, hash-verified

221 })
222 },
223 annotateContext(this: HttpApi.AnyWithProps, context: Context.Context<any>) {
224 return makeProto({
225 identifier: this.identifier,
226 groups: this.groups,
227 errorSchema: this.errorSchema,
228 annotations: Context.merge(this.annotations, context),
229 middlewares: this.middlewares
230 })
231 }
232}
233
234const makeProto = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, I, R>(

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.80
makeProtoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…