MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / constructor

Method constructor

webapp/_webapp/src/libs/storage.ts:56–60  ·  view source on GitHub ↗
(
    private key: string,
    private defaultValue: T,
    private adapter: StorageAdapter = getStorage(),
  )

Source from the content-addressed store, hash-verified

54 */
55export class TypedStorage<T> {
56 constructor(
57 private key: string,
58 private defaultValue: T,
59 private adapter: StorageAdapter = getStorage(),
60 ) {}
61
62 get(): T {
63 const raw = this.adapter.getItem(this.key);

Callers

nothing calls this directly

Calls 1

getStorageFunction · 0.70

Tested by

no test coverage detected