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

Function annotate

packages/effect/src/unstable/httpapi/HttpApi.ts:184–189  ·  view source on GitHub ↗
(this: Top, key: Context.Key<any, any>, value: any)

Source from the content-addressed store, hash-verified

182 })
183 },
184 annotate(this: Top, key: Context.Key<any, any>, value: any) {
185 return makeProto({
186 ...optionsFromApi(this),
187 annotations: Context.add(this.annotations, key, value)
188 })
189 },
190 annotateMerge(this: Top, annotations: Context.Context<never>) {
191 return makeProto({
192 ...optionsFromApi(this),

Callers

nothing calls this directly

Calls 3

optionsFromApiFunction · 0.85
makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected