mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
all the lints
This commit is contained in:
@@ -18,7 +18,7 @@ type ReactComponent = new(...args: any[]) => React.Component<any, any>;
|
||||
|
||||
let gameContainer: HTMLElement;
|
||||
|
||||
function getGameContainer() {
|
||||
function getGameContainer(): void {
|
||||
const container = document.getElementById("entire-game-container");
|
||||
if (container == null) {
|
||||
throw new Error(`Failed to find game container DOM element`)
|
||||
@@ -30,7 +30,8 @@ function getGameContainer() {
|
||||
|
||||
document.addEventListener("DOMContentLoaded", getGameContainer);
|
||||
|
||||
export function createPopup(id: string, rootComponent: ReactComponent, props: object): HTMLElement | null {
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||
export function createPopup(id: string, rootComponent: ReactComponent, props: any): HTMLElement | null {
|
||||
let container = document.getElementById(id);
|
||||
if (container == null) {
|
||||
container = createElement("div", {
|
||||
|
||||
Reference in New Issue
Block a user