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

Function get

webapp/_webapp/src/libs/storage.ts:38–45  ·  view source on GitHub ↗
(_, prop: keyof StorageAdapter)

Source from the content-addressed store, hash-verified

36 */
37export const storage: StorageAdapter = new Proxy({} as StorageAdapter, {
38 get(_, prop: keyof StorageAdapter) {
39 const instance = getStorage();
40 const value = instance[prop];
41 if (typeof value === "function") {
42 return value.bind(instance);
43 }
44 return value;
45 },
46});
47
48// ============================================================================

Callers 8

message-store.tsFile · 0.50
setting-store.tsFile · 0.50
auth-store.tsFile · 0.50
socket-store.tsFile · 0.50

Calls 1

getStorageFunction · 0.70

Tested by

no test coverage detected