Defined in: packages/heap/src/serialization/families/k-heap.ts:20
A plain, inert snapshot of a k-ary heap, adding the layout’s arity.
Restoring requires the same arity the heap was built with; it is validated
as a safe integer of at least 2 exactly like the factory argument.
Type Parameters
Section titled “Type Parameters”A
Properties
Section titled “Properties”schemaVersion
Section titled “schemaVersion”
readonlyschemaVersion:1
Defined in: packages/heap/src/serialization/families/k-heap.ts:22
Wire-schema version.
readonlykind:"k-min"|"k-max"
Defined in: packages/heap/src/serialization/families/k-heap.ts:24
The storage layout and extraction direction to restore.
readonlyarity:number
Defined in: packages/heap/src/serialization/families/k-heap.ts:26
Children per node, as the factory fixed it.
readonlynodes: readonlyA[]
Defined in: packages/heap/src/serialization/families/k-heap.ts:28
The internal node array, in exact internal heap order.