rvagg / js-ipld-hashmap

An associative array Map-type data structure for very large, distributed data sets built on IPLD
Other
23 stars 4 forks source link

bitWidth and bucketSize not optional in the typings for when loading iamap with CID #55

Closed TheGreatAlgo closed 1 year ago

TheGreatAlgo commented 1 year ago
export interface CreateOptions<Codec extends number, V> {
  blockCodec: BlockCodec<Codec, V>

  blockHasher: MultihashHasher

  hasher?: MultihashHasher

  hashBytes?: number

  bitWidth: number

  bucketSize: number
}

here bitWidth and bucketSize is not optional even though loading an IaMap with cid does not require it Screenshot 2023-03-29 at 8 45 46 AM