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

Function makePayloadCodec

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

Source from the content-addressed store, hash-verified

227 // workflow name; derived from the workflow's own schemas so typed values
228 // (dates, branded ids, schema classes) survive the storage round-trip.
229 const makePayloadCodec = (workflow: Workflow.Any) => S.fromJsonString(S.toCodecJson(workflow.payloadSchema))
230 const payloadCodecCache = new Map<string, ReturnType<typeof makePayloadCodec>>()
231 const payloadCodecFor = (workflow: Workflow.Any) => {
232 let c = payloadCodecCache.get(workflow._tag)

Callers 1

payloadCodecForFunction · 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…