Defined in: packages/heap/src/serialization/families/binary-heap.ts:23
A plain, inert snapshot of a binary heap. It holds no behavior and no
reference to the heap it came from, so it can be stored, compared,
structurally cloned, or sent through postMessage. It survives
JSON.stringify when the elements themselves do.
Type Parameters
Section titled “Type Parameters”A
Properties
Section titled “Properties”schemaVersion
Section titled “schemaVersion”
readonlyschemaVersion:1
Defined in: packages/heap/src/serialization/families/binary-heap.ts:25
Wire-schema version.
readonlykind:"binary-min"|"binary-max"
Defined in: packages/heap/src/serialization/families/binary-heap.ts:27
The storage layout and extraction direction to restore.
readonlynodes: readonlyA[]
Defined in: packages/heap/src/serialization/families/binary-heap.ts:29
The internal node array, in exact internal heap order.