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

Function setSuccess

packages/rpc/src/Rpc.ts:537–550  ·  view source on GitHub ↗
(
    this: AnyWithProps,
    successSchema: Schema.Schema.Any
  )

Source from the content-addressed store, hash-verified

535 return pipeArguments(this, arguments)
536 },
537 setSuccess(
538 this: AnyWithProps,
539 successSchema: Schema.Schema.Any
540 ) {
541 return makeProto({
542 _tag: this._tag,
543 payloadSchema: this.payloadSchema,
544 successSchema,
545 errorSchema: this.errorSchema,
546 defectSchema: this.defectSchema,
547 annotations: this.annotations,
548 middlewares: this.middlewares
549 })
550 },
551 setError(this: AnyWithProps, errorSchema: Schema.Schema.All) {
552 return makeProto({
553 _tag: this._tag,

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected