From 0b28bee2228ed61a5fe74bb3658ae9a5c7a8f95a Mon Sep 17 00:00:00 2001 From: Philipp Giese Date: Tue, 14 Jan 2025 22:01:56 +0100 Subject: [PATCH] adjust type --- deployables/extension/src/panel/utils/getStorageEntries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployables/extension/src/panel/utils/getStorageEntries.ts b/deployables/extension/src/panel/utils/getStorageEntries.ts index 6a51292e5..007eb08c8 100644 --- a/deployables/extension/src/panel/utils/getStorageEntries.ts +++ b/deployables/extension/src/panel/utils/getStorageEntries.ts @@ -1,7 +1,7 @@ export function getStorageEntries(collection: string) { const { promise, resolve } = Promise.withResolvers<{ [key: string]: T }>() - chrome.storage.sync.get((allEntries) => { + chrome.storage.sync.get<{ [key: string]: T }>((allEntries) => { const matchingEntries = Object.entries(allEntries) .map(([itemKey, value]) => { const match = itemKey.match(new RegExp(`${collection}\\[(.+)\\]`))