alepha@docs:~/docs/reference/providers$
cat ProtobufSchemaCodec.md
1 min read
Last commit:

#ProtobufSchemaCodec

#Import

typescript
1import { ProtobufSchemaCodec } from "alepha";

#Overview

ProtobufSchemaCodec handles encoding/decoding for Protobuf format.

Key differences from JSON codec:

  • BigInt values are kept as BigInt (not converted to string)
  • Date values are converted to ISO strings for protobuf compatibility
  • Binary data (Uint8Array) is kept as-is
  • Proto3 default values are applied when decoding (to handle omitted fields)