Skip to content

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.

A

readonly schemaVersion: 1

Defined in: packages/heap/src/serialization/families/binary-heap.ts:25

Wire-schema version.


readonly kind: "binary-min" | "binary-max"

Defined in: packages/heap/src/serialization/families/binary-heap.ts:27

The storage layout and extraction direction to restore.


readonly nodes: readonly A[]

Defined in: packages/heap/src/serialization/families/binary-heap.ts:29

The internal node array, in exact internal heap order.