Defined in: packages/trie/src/serialization/json.ts:26
A plain, inert description of a segmented trie: the implementation kind and
every entry, in the iteration order entries() reports. It holds no
behavior and no reference to the structure it came from, so it can be
stored, compared, structurally cloned, or sent through postMessage. It
survives JSON.stringify when the values themselves do.
kind identifies the storage layout to restore. Restoring replays the
entries in order, so a round trip also preserves iteration order: replayed
children land in each node’s Map exactly as the walk first found them.
Type Parameters
Section titled “Type Parameters”V
Properties
Section titled “Properties”schemaVersion
Section titled “schemaVersion”
readonlyschemaVersion:1
Defined in: packages/trie/src/serialization/json.ts:28
Wire-schema version.
readonlykind:"uncompressed"|"compressed"
Defined in: packages/trie/src/serialization/json.ts:30
The storage layout to restore when no factory override is supplied.
entries
Section titled “entries”
readonlyentries: readonlySegmentedTrieEntry<V>[]
Defined in: packages/trie/src/serialization/json.ts:32
Every entry, in iteration order.