Codec.fromSchema
function · packages/durable/src/codec.ts:26
fromSchema<Value, Encoded>(
schema: Schema.Codec<Value, Encoded>,
): Codec<Value, Encoded>The function pair a Schema.Codec denotes. Decoding validates unknown
input and throws a SchemaError when it does not match, which the journal
reports as InvalidOperationError.