MCPcopy Create free account
hub / github.com/Effect-TS/effect / annotateEndpoints

Function annotateEndpoints

packages/effect/src/unstable/httpapi/HttpApiGroup.ts:348–353  ·  view source on GitHub ↗
(this: Top, annotation: Context.Key<I, S>, value: S)

Source from the content-addressed store, hash-verified

346 })
347 },
348 annotateEndpoints<I, S>(this: Top, annotation: Context.Key<I, S>, value: S) {
349 return makeProto({
350 ...optionsFromGroup(this),
351 endpoints: Record.map(this.endpoints, (endpoint) => endpoint.annotate(annotation, value))
352 })
353 },
354 pipe() {
355 return pipeArguments(this, arguments)
356 }

Callers

nothing calls this directly

Calls 4

optionsFromGroupFunction · 0.85
makeProtoFunction · 0.70
annotateMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected