MCPcopy Create free account
hub / github.com/effect-app/libs / decodeResult

Function decodeResult

packages/infra/src/WorkflowEngineCosmos.ts:225–226  ·  view source on GitHub ↗
(workflow: Workflow.Any, s: string)

Source from the content-addressed store, hash-verified

223 const encodeResult = (workflow: Workflow.Any, r: Workflow.Result<unknown, unknown>) =>
224 Effect.orDie(S.encodeEffect(resultCodecFor(workflow))(r)) as Effect.Effect<string>
225 const decodeResult = (workflow: Workflow.Any, s: string) =>
226 Effect.orDie(S.decodeEffect(resultCodecFor(workflow))(s)) as Effect.Effect<Workflow.Result<unknown, unknown>>
227
228 // --- Cosmos primitives -------------------------------------------------
229

Callers 1

completeResultFunction · 0.70

Calls 1

resultCodecForFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…