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

Function fromTaggedRequest

packages/rpc/src/Rpc.ts:726–737  ·  view source on GitHub ↗
(
  schema: S
)

Source from the content-addressed store, hash-verified

724 * @category constructors
725 */
726export const fromTaggedRequest = <S extends AnyTaggedRequestSchema>(
727 schema: S
728): From<S> =>
729 makeProto({
730 _tag: schema._tag,
731 payloadSchema: schema as any,
732 successSchema: schema.success as any,
733 errorSchema: schema.failure,
734 defectSchema: Schema.Defect,
735 annotations: Context_.empty(),
736 middlewares: new Set()
737 })
738
739const exitSchemaCache = globalValue("@effect/rpc/Rpc/exitSchemaCache", () => new WeakMap<Any, Schema.Schema.Any>())
740

Callers

nothing calls this directly

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected