MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / getStorageItem

Function getStorageItem

src/storage.ts:73–83  ·  view source on GitHub ↗
(key: Key)

Source from the content-addressed store, hash-verified

71}
72
73export function getStorageItem<Key extends keyof Storage>(key: Key): Promise<Storage[Key]> {
74 return new Promise((resolve, reject) => {
75 chrome.storage.sync.get([key], (result) => {
76 if (chrome.runtime.lastError) {
77 return reject(chrome.runtime.lastError);
78 }
79
80 return resolve((result as Storage)[key]);
81 });
82 });
83}
84
85export function setStorageItem<Key extends keyof Storage>(
86 key: Key,

Callers 7

clearLastErrorFunction · 0.90
serviceWorker.tsFile · 0.90
getLanguageServerUrlFunction · 0.90
popup.tsFile · 0.90
EditableListFunction · 0.90
OptionsFunction · 0.90
getGeneralPortalUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected