MCPcopy Create free account
hub / github.com/TanStack/db / constructor

Method constructor

packages/db-ivm/src/utils.ts:18–23  ·  view source on GitHub ↗
(
    private defaultValue: () => V,
    entries?: Iterable<[K, V]>,
  )

Source from the content-addressed store, hash-verified

16 */
17export class DefaultMap<K, V> extends Map<K, V> {
18 constructor(
19 private defaultValue: () => V,
20 entries?: Iterable<[K, V]>,
21 ) {
22 super(entries)
23 }
24
25 get(key: K): V {
26 if (!this.has(key)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected