From 68183b648e309641e415f5856d233bea6f5f4439 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 23 Aug 2024 08:49:39 -0500 Subject: [PATCH] chore(types): Cleanup types in wxt/browser/chrome (#932) --- packages/wxt/src/browser/chrome.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/wxt/src/browser/chrome.ts b/packages/wxt/src/browser/chrome.ts index 546c2240..cb9a4430 100644 --- a/packages/wxt/src/browser/chrome.ts +++ b/packages/wxt/src/browser/chrome.ts @@ -1,9 +1,4 @@ /// -/** - * @module wxt/browser/chrome - */ -import type { WxtRuntime, WxtI18n } from './index'; - /** * EXPERIMENTAL * @@ -11,11 +6,11 @@ import type { WxtRuntime, WxtI18n } from './index'; * * @module wxt/browser/chrome */ +import type { WxtRuntime, WxtI18n } from './index'; -export type Chrome = typeof chrome; -export type WxtBrowser = Omit & { - runtime: WxtRuntime & Omit; - i18n: WxtI18n & Omit; +export type WxtBrowser = Omit & { + runtime: WxtRuntime & Omit<(typeof chrome)['runtime'], 'getURL'>; + i18n: WxtI18n & Omit<(typeof chrome)['i18n'], 'getMessage'>; }; export const browser: WxtBrowser =