summaryrefslogtreecommitdiff
path: root/source/helpers/types.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/helpers/types.d.ts')
-rw-r--r--source/helpers/types.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/helpers/types.d.ts b/source/helpers/types.d.ts
index 06f4cb80..e3224b49 100644
--- a/source/helpers/types.d.ts
+++ b/source/helpers/types.d.ts
@@ -15,4 +15,9 @@ declare global {
closest<S extends string>(selector: S | readonly S[]): StrictlyParseSelector<S, HTMLElement> | null;
matches(selectors: string | readonly string[]): boolean;
}
+
+ // This cannot be a regular import because it turns `globals.d.ts` in a "module definition", which it isn't
+ type Browser = import('webextension-polyfill').Browser;
+ const browser: Browser;
+
}