Skip to content

Commit

Permalink
adjust type
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil committed Jan 14, 2025
1 parent 6a7cdac commit 0b28bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployables/extension/src/panel/utils/getStorageEntries.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function getStorageEntries<T>(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}\\[(.+)\\]`))
Expand Down

0 comments on commit 0b28bee

Please sign in to comment.