aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/globals.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/globals.d.ts')
-rw-r--r--src/globals.d.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts
new file mode 100644
index 00000000..ed8547a0
--- /dev/null
+++ b/src/globals.d.ts
@@ -0,0 +1,19 @@
+import { SBObject } from "./config";
+declare global {
+ interface Window { SB: SBObject; }
+ // Remove this once the API becomes stable and types are shipped in @types/chrome
+ namespace chrome {
+ namespace declarativeContent {
+ export interface RequestContentScriptOptions {
+ allFrames?: boolean;
+ css?: string[];
+ instanceType?: "declarativeContent.RequestContentScript";
+ js?: string[];
+ matchAboutBlanck?: boolean;
+ }
+ export class RequestContentScript {
+ constructor(options: RequestContentScriptOptions);
+ }
+ }
+ }
+}