setToStorage function infrastructure exported ✓ 100.0%

Last updated: 2026-03-05T10:53:28.866Z

Metrics

LOC: 3 Complexity: 1 Params: 2 Coverage: 100.0% (1/1 lines, 0x executed)

Signature

setToStorage(key: string, value: T): : Promise<void>

Summary

Writes a value to chrome.storage.local.

Tags

#@param key - Storage key to write#@param value - Value to persist

Source Code

export async function setToStorage<T>(key: string, value: T): Promise<void> {
  await chrome.storage.local.set({ [key]: value });
}

No outgoing dependencies.

Impact (Incoming)

graph LR setToStorage["setToStorage"] updateStorageAtomically["updateStorageAtomically"] updateStorageAtomically -->|calls| setToStorage style setToStorage fill:#dbeafe,stroke:#2563eb,stroke-width:2px click setToStorage "c4192294ba99b656.html" click updateStorageAtomically "bf2f57323401fa98.html"
SourceType
updateStorageAtomically calls