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

Method toJSON

packages/db-ivm/src/multiset.ts:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 toJSON(): string {
26 return JSON.stringify(Array.from(this.getInner()))
27 }
28
29 static fromJSON<U>(json: string): MultiSet<U> {
30 return new MultiSet(JSON.parse(json))

Callers 2

serializeValueFunction · 0.80
serializeValueFunction · 0.80

Calls 2

getInnerMethod · 0.95
fromMethod · 0.80

Tested by

no test coverage detected