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

Function setPayload

packages/rpc/src/Rpc.ts:562–572  ·  view source on GitHub ↗
(this: AnyWithProps, payloadSchema: Schema.Struct<any> | Schema.Struct.Fields)

Source from the content-addressed store, hash-verified

560 })
561 },
562 setPayload(this: AnyWithProps, payloadSchema: Schema.Struct<any> | Schema.Struct.Fields) {
563 return makeProto({
564 _tag: this._tag,
565 payloadSchema: Schema.isSchema(payloadSchema) ? payloadSchema as any : Schema.Struct(payloadSchema as any),
566 successSchema: this.successSchema,
567 errorSchema: this.errorSchema,
568 defectSchema: this.defectSchema,
569 annotations: this.annotations,
570 middlewares: this.middlewares
571 })
572 },
573 middleware(this: AnyWithProps, middleware: RpcMiddleware.TagClassAny) {
574 return makeProto({
575 _tag: this._tag,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected