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

Function annotate

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

Source from the content-addressed store, hash-verified

334 })
335 },
336 annotate<I, S>(this: Top, annotation: Context.Key<I, S>, value: S) {
337 return makeProto({
338 ...optionsFromGroup(this),
339 annotations: Context.add(this.annotations, annotation, value)
340 })
341 },
342 annotateEndpointsMerge<I>(this: Top, annotations: Context.Context<I>) {
343 return makeProto({
344 ...optionsFromGroup(this),

Callers

nothing calls this directly

Calls 3

optionsFromGroupFunction · 0.85
makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected