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

Function annotate

packages/platform/src/HttpApi.ts:214–222  ·  view source on GitHub ↗
(this: HttpApi.AnyWithProps, tag: Context.Tag<any, any>, value: any)

Source from the content-addressed store, hash-verified

212 })
213 },
214 annotate(this: HttpApi.AnyWithProps, tag: Context.Tag<any, any>, value: any) {
215 return makeProto({
216 identifier: this.identifier,
217 groups: this.groups,
218 errorSchema: this.errorSchema,
219 annotations: Context.add(this.annotations, tag, value),
220 middlewares: this.middlewares
221 })
222 },
223 annotateContext(this: HttpApi.AnyWithProps, context: Context.Context<any>) {
224 return makeProto({
225 identifier: this.identifier,

Callers

nothing calls this directly

Calls 2

makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected