From 3a8e6135ac927581a362ff07d034f2ccef0f90ef Mon Sep 17 00:00:00 2001 From: Aaron Date: Sun, 4 Aug 2024 09:27:46 -0500 Subject: [PATCH] fix: Fix `createIframeUi` `page` option types --- packages/wxt/src/client/content-scripts/ui/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wxt/src/client/content-scripts/ui/types.ts b/packages/wxt/src/client/content-scripts/ui/types.ts index aa49e2e7..986c20be 100644 --- a/packages/wxt/src/client/content-scripts/ui/types.ts +++ b/packages/wxt/src/client/content-scripts/ui/types.ts @@ -83,7 +83,8 @@ export type IframeContentScriptUiOptions = * The path to the HTML page that will be shown in the iframe. This string is passed into * `browser.runtime.getURL`. */ - page: PublicPath; + // @ts-expect-error: HtmlPublicPath is generated per-project + page: import('wxt/browser').HtmlPublicPath; /** * Callback executed when mounting the UI. Use this function to customize the iframe or wrapper * element's appearance. It is called every time `ui.mount()` is called.