( schema: S )
| 724 | * @category constructors |
| 725 | */ |
| 726 | export 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 | |
| 739 | const exitSchemaCache = globalValue("@effect/rpc/Rpc/exitSchemaCache", () => new WeakMap<Any, Schema.Schema.Any>()) |
| 740 |
nothing calls this directly
no test coverage detected