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

Function makeResultCodec

packages/infra/src/WorkflowEngineCosmos.ts:207–208  ·  view source on GitHub ↗
(workflow: Workflow.Any)

Source from the content-addressed store, hash-verified

205 }
206
207 const makeResultCodec = (workflow: Workflow.Any) =>
208 S.fromJsonString(S.toCodecJson(Workflow.Result({ success: workflow.successSchema, error: workflow.errorSchema })))
209 const resultCodecCache = new Map<string, ReturnType<typeof makeResultCodec>>()
210 const resultCodecFor = (workflow: Workflow.Any) => {
211 let c = resultCodecCache.get(workflow._tag)

Callers 1

resultCodecForFunction · 0.70

Calls 1

toCodecJsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…