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

Function annotate

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

Source from the content-addressed store, hash-verified

809 })
810 },
811 annotate(this: Top, key: Context.Key<any, any>, value: any) {
812 return makeProto({
813 ...optionsFromEndpoint(this),
814 annotations: Context.add(this.annotations, key, value)
815 })
816 },
817 annotateMerge(this: Top, annotations: Context.Context<any>) {
818 return makeProto({
819 ...optionsFromEndpoint(this),

Callers

nothing calls this directly

Calls 3

optionsFromEndpointFunction · 0.85
makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected