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

Function annotate

packages/effect/src/unstable/rpc/Rpc.ts:842–852  ·  view source on GitHub ↗
(this: AnyWithProps, tag: Context.Key<any, any>, value: any)

Source from the content-addressed store, hash-verified

840 })
841 },
842 annotate(this: AnyWithProps, tag: Context.Key<any, any>, value: any) {
843 return makeProto({
844 _tag: this._tag,
845 payloadSchema: this.payloadSchema,
846 successSchema: this.successSchema,
847 errorSchema: this.errorSchema,
848 defectSchema: this.defectSchema,
849 middlewares: this.middlewares,
850 annotations: Context.add(this.annotations, tag, value)
851 })
852 },
853 annotateMerge(this: AnyWithProps, context: Context.Context<any>) {
854 return makeProto({
855 _tag: this._tag,

Callers

nothing calls this directly

Calls 2

makeProtoFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected