MCPcopy Create free account
hub / github.com/tinyplex/tinybase / constructor

Method constructor

src/ui-svelte/functions.svelte.ts:133–136  ·  view source on GitHub ↗
(getCurrent: () => Current, subscribe: () => void)

Source from the content-addressed store, hash-verified

131 readonly #sub: () => void;
132
133 constructor(getCurrent: () => Current, subscribe: () => void) {
134 this.#get = getCurrent;
135 this.#sub = subscribe;
136 }
137
138 get current(): Current {
139 this.#sub();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected