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

Method constructor

packages/db-ivm/src/operators/topKState.ts:21–23  ·  view source on GitHub ↗
(topK: TopK<[K, T]>)

Source from the content-addressed store, hash-verified

19 #topK: TopK<[K, T]>
20
21 constructor(topK: TopK<[K, T]>) {
22 this.#topK = topK
23 }
24
25 get size(): number {
26 return this.#topK.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected