Huggingface.js documentation

Interface: RangeEditCacheEntry

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: RangeEditCacheEntry

Properties

lastTermChunks

lastTermChunks: { hash: string ; length: number }[]

The last term’s chunks (hash + length)

Defined in

packages/hub/src/utils/rangeEdit.ts:29


openSubtree

openSubtree: null | MerkleHashSubtreeJson

Partial merkle state of all chunks except the last term’s (at_start: true, at_end: false); null when the file has a single term.

Defined in

packages/hub/src/utils/rangeEdit.ts:27


size

size: number

Total file size in bytes

Defined in

packages/hub/src/utils/rangeEdit.ts:20


terms

terms: OriginalTerm & { rangeHash: string }[]

The file’s terms, in order, with their verification range hashes

Defined in

packages/hub/src/utils/rangeEdit.ts:22

Update on GitHub