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

Function annotateMerge

packages/effect/src/unstable/rpc/Rpc.ts:853–863  ·  view source on GitHub ↗
(this: AnyWithProps, context: Context.Context<any>)

Source from the content-addressed store, hash-verified

851 })
852 },
853 annotateMerge(this: AnyWithProps, context: Context.Context<any>) {
854 return makeProto({
855 _tag: this._tag,
856 payloadSchema: this.payloadSchema,
857 successSchema: this.successSchema,
858 errorSchema: this.errorSchema,
859 defectSchema: this.defectSchema,
860 middlewares: this.middlewares,
861 annotations: Context.merge(this.annotations, context)
862 })
863 }
864}
865
866const makeProto = <

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.80
makeProtoFunction · 0.70

Tested by

no test coverage detected