MCPcopy
hub / github.com/Effect-TS/effect / encode

Function encode

packages/platform/src/internal/worker.ts:300–305  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

298 const backing = yield* manager.spawn({
299 ...options as any,
300 encode(message) {
301 return Effect.mapError(
302 Schema.serialize(message as any),
303 (cause) => new WorkerError({ reason: "encode", cause })
304 )
305 }
306 })
307 const execute = <Req extends I>(message: Req) => {
308 const parseSuccess = Schema.decode(Schema.successSchema(message as any))

Callers 5

jsonSchemaFunction · 0.70
setFunction · 0.70
schemaJsonFunction · 0.70
spawnFunction · 0.70
schemaBodyJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected