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

Function makeResultCodec

packages/infra/src/WorkflowEngineSqlite.ts:240–241  ·  view source on GitHub ↗
(workflow: Workflow.Any)

Source from the content-addressed store, hash-verified

238 }
239
240 const makeResultCodec = (workflow: Workflow.Any) =>
241 S.fromJsonString(S.toCodecJson(Workflow.Result({ success: workflow.successSchema, error: workflow.errorSchema })))
242 const resultCodecCache = new Map<string, ReturnType<typeof makeResultCodec>>()
243 const resultCodecFor = (workflow: Workflow.Any) => {
244 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…