chore(types): Cleanup types in wxt/browser/chrome (#932)

This commit is contained in:
Aaron
2024-08-23 08:49:39 -05:00
committed by GitHub
parent 45809c0198
commit 68183b648e
+4 -9
View File
@@ -1,9 +1,4 @@
/// <reference types="chrome" />
/**
* @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<Chrome, 'runtime' | 'i18n'> & {
runtime: WxtRuntime & Omit<Chrome['runtime'], 'getURL'>;
i18n: WxtI18n & Omit<Chrome['i18n'], 'getMessage'>;
export type WxtBrowser = Omit<typeof chrome, 'runtime' | 'i18n'> & {
runtime: WxtRuntime & Omit<(typeof chrome)['runtime'], 'getURL'>;
i18n: WxtI18n & Omit<(typeof chrome)['i18n'], 'getMessage'>;
};
export const browser: WxtBrowser =