Sync / foldkit-durable

CodecInput

type · packages/durable/src/codec.ts:23

type CodecInput<Value, Encoded = unknown> =
  Codec<Value, Encoded> | Schema.Codec<Value, Encoded>

What JournalOptions.operation and .snapshot accept: an Effect Schema.Codec, or the function pair for an application that does not use Schema. A schema that requires services to decode or encode is rejected, because the journal resolves a codec synchronously inside the append transaction.