From 1ae3fb54b98baa92ac1fcc6b2ab87b3340fbabcb Mon Sep 17 00:00:00 2001 From: Jeff Nawroth Date: Sun, 22 Dec 2024 11:06:37 +0100 Subject: [PATCH] chore: update template --- src/composables/useWebExtensionStorage.ts | 3 +-- src/manifest.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/composables/useWebExtensionStorage.ts b/src/composables/useWebExtensionStorage.ts index d320d57..ecc60b4 100644 --- a/src/composables/useWebExtensionStorage.ts +++ b/src/composables/useWebExtensionStorage.ts @@ -43,11 +43,10 @@ const storageInterface: StorageLikeAsync = { return storage.local.set({ [key]: value }) }, - // @ts-expect-error: missing types async getItem(key: string) { const storedData = await storage.local.get(key) - return storedData[key] + return storedData[key] as string }, } diff --git a/src/manifest.ts b/src/manifest.ts index 5e202cb..4d80bce 100644 --- a/src/manifest.ts +++ b/src/manifest.ts @@ -81,8 +81,7 @@ export async function getManifest() { } else { // the sidebar_action does not work for chromium based - // @ts-expect-error: missing types - manifest.side_panel = { + (manifest as any).side_panel = { default_path: 'dist/sidepanel/index.html', } }