Defined in: packages/heap/src/serialization/binary.ts:95
Runtime inputs for decoding a priority queue’s parallel key and value runs.
Type Parameters
Section titled “Type Parameters”K
V
Properties
Section titled “Properties”keyCodec
Section titled “keyCodec”
readonlykeyCodec:ElementCodec<K>
Defined in: packages/heap/src/serialization/binary.ts:97
Codec matching the one used to serialize keys.
valueCodec
Section titled “valueCodec”
readonlyvalueCodec:ElementCodec<V>
Defined in: packages/heap/src/serialization/binary.ts:99
Codec matching the one used to serialize values.
isKey?
Section titled “isKey?”
readonlyoptionalisKey?: (value) =>value is K
Defined in: packages/heap/src/serialization/binary.ts:101
Optional validation applied to every decoded key.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is K
isValue?
Section titled “isValue?”
readonlyoptionalisValue?: (value) =>value is V
Defined in: packages/heap/src/serialization/binary.ts:103
Optional validation applied to every decoded value.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”value is V