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

Function prefix

packages/effect/src/unstable/rpc/Rpc.ts:831–841  ·  view source on GitHub ↗
(this: AnyWithProps, prefix: string)

Source from the content-addressed store, hash-verified

829 })
830 },
831 prefix(this: AnyWithProps, prefix: string) {
832 return makeProto({
833 _tag: `${prefix}${this._tag}`,
834 payloadSchema: this.payloadSchema,
835 successSchema: this.successSchema,
836 errorSchema: this.errorSchema,
837 defectSchema: this.defectSchema,
838 annotations: this.annotations,
839 middlewares: this.middlewares
840 })
841 },
842 annotate(this: AnyWithProps, tag: Context.Key<any, any>, value: any) {
843 return makeProto({
844 _tag: this._tag,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected