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

Function annotateContext

packages/rpc/src/Rpc.ts:606–616  ·  view source on GitHub ↗
(this: AnyWithProps, context: Context_.Context<any>)

Source from the content-addressed store, hash-verified

604 })
605 },
606 annotateContext(this: AnyWithProps, context: Context_.Context<any>) {
607 return makeProto({
608 _tag: this._tag,
609 payloadSchema: this.payloadSchema,
610 successSchema: this.successSchema,
611 errorSchema: this.errorSchema,
612 defectSchema: this.defectSchema,
613 middlewares: this.middlewares,
614 annotations: Context_.merge(this.annotations, context)
615 })
616 }
617}
618
619const makeProto = <

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.80
makeProtoFunction · 0.70

Tested by

no test coverage detected