Skip to content

Commit

Permalink
🏷️ Fix type of gBrowser in global
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Feb 15, 2023
1 parent 11e2df2 commit b9a4ff3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions types.d.ts
Expand Up @@ -2,8 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { dBrowser } from "./base/content/browser";
import { dBrowserInit } from "./base/content/browser-init";
import { _dBrowser } from "./base/content/browser";
import { nsIXULBrowserWindow } from "./base/content/browser-window";
import "./third_party/dothq/gecko-types";
import * as Gecko from "./third_party/dothq/gecko-types/lib";
Expand All @@ -16,7 +15,8 @@ declare global {
}

var BrowserUIUtils: Gecko.BrowserUIUtils;
var gBrowser: Gecko.Browser;
var gBrowser: typeof _dBrowser & Gecko.Browser;
var _gBrowser: Gecko.Browser;
var XULBrowserWindow: nsIXULBrowserWindow;

var XULElement: Gecko.XULElement;
Expand All @@ -26,13 +26,10 @@ declare global {
updateFxaToolbarMenu: any;
SidebarUI: any;
LightweightThemeConsumer: any;
dBrowser: typeof dBrowser;
dBrowserInit: typeof dBrowserInit;
html: (
tagName: string,
attributes?: { [key: string]: any },
...children: Array<HTMLElement | string>
) => HTMLElement;
loadESMSubScript: typeof loadESMSubScript;
}
}

0 comments on commit b9a4ff3

Please sign in to comment.