setToStorage function infrastructure exported ✓ 100.0%
Last updated: 2026-03-05T10:53:28.866Z
Location
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)
| Source | Type |
|---|---|
| updateStorageAtomically | calls |