We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 285ed8c commit 0a575a3Copy full SHA for 0a575a3
packages/util/src/environment.ts
@@ -75,8 +75,8 @@ export function isBrowser(): boolean {
75
/**
76
* Detect browser extensions (Chrome and Firefox at least).
77
*/
78
-declare var chrome: any;
79
-declare var browser: any;
+declare const chrome: { runtime?: unknown };
+declare const browser: { runtime?: unknown };
80
export function isBrowserExtension(): boolean {
81
return (
82
(typeof chrome === 'object' && chrome.runtime !== undefined) ||
0 commit comments