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

Method constructor

src/ui-svelte/functions.svelte.ts:147–154  ·  view source on GitHub ↗
(
    getCurrent: () => Current,
    setCurrent: (value: Next) => void,
    subscribe: () => void,
  )

Source from the content-addressed store, hash-verified

145 readonly #set: (value: Next) => void;
146
147 constructor(
148 getCurrent: () => Current,
149 setCurrent: (value: Next) => void,
150 subscribe: () => void,
151 ) {
152 super(getCurrent, subscribe);
153 this.#set = setCurrent;
154 }
155
156 get current(): Current {
157 return super.current;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected