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

Function annotate

packages/rpc/src/Rpc.ts:595–605  ·  view source on GitHub ↗
(this: AnyWithProps, tag: Context_.Tag<any, any>, value: any)

Source from the content-addressed store, hash-verified

593 })
594 },
595 annotate(this: AnyWithProps, tag: Context_.Tag<any, any>, value: any) {
596 return makeProto({
597 _tag: this._tag,
598 payloadSchema: this.payloadSchema,
599 successSchema: this.successSchema,
600 errorSchema: this.errorSchema,
601 defectSchema: this.defectSchema,
602 middlewares: this.middlewares,
603 annotations: Context_.add(this.annotations, tag, value)
604 })
605 },
606 annotateContext(this: AnyWithProps, context: Context_.Context<any>) {
607 return makeProto({
608 _tag: this._tag,

Callers

nothing calls this directly

Calls 2

makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected