コンテンツにスキップ
日本語

AvroSerializerOptionsType

このコンテンツはまだ日本語訳がありません。

AvroSerializerOptionsType<T> = object

Defined in: src/serialization/AvroSerializerOptions.ts:31

Plain options-object shape accepted by an AvroSerializer.

T = unknown

readonly avroType: AvroType<T>

Defined in: src/serialization/AvroSerializerOptions.ts:33

The compiled Avro type that does the encoding. Required.


readonly id: number

Defined in: src/serialization/AvroSerializerOptions.ts:39

Wire identifier embedded in every frame. Required, and must be

= 100: 1–99 are reserved for the built-ins (JSON=1, CBOR=2), and a collision there is only noticed when a reader decodes garbage.


readonly optional manifest?: string

Defined in: src/serialization/AvroSerializerOptions.ts:47

Manifest written alongside the bytes. Defaults to the Avro type’s record name, so a decoder can tell a Deposited row from a Withdrawn one; set '' to write no manifest at all.


readonly optional name?: string

Defined in: src/serialization/AvroSerializerOptions.ts:41

Diagnostic name shown in error messages. Default 'avro'.