Skip to content
Snippets Groups Projects
Verified Commit 00323d04 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: removed ts-ignore statement

parent c06d5e55
No related branches found
No related tags found
1 merge request!8Support for react.js components
Pipeline #1083 passed
...@@ -39,7 +39,6 @@ const KEYS: Record<string, number> = { ...@@ -39,7 +39,6 @@ const KEYS: Record<string, number> = {
s: PadKey.B s: PadKey.B
}; };
// @ts-ignore: ts(2580)
const ROM_PATH = require("../../res/roms/20y.gb"); const ROM_PATH = require("../../res/roms/20y.gb");
// Enumeration that describes the multiple pixel // Enumeration that describes the multiple pixel
...@@ -153,7 +152,6 @@ class Emulator { ...@@ -153,7 +152,6 @@ class Emulator {
// also sets the default color on screen to indicate the issue // also sets the default color on screen to indicate the issue
if (isPanic) { if (isPanic) {
await this.clearCanvas(undefined, { await this.clearCanvas(undefined, {
// @ts-ignore: ts(2580)
image: require("./res/storm.png"), image: require("./res/storm.png"),
imageScale: 0.2 imageScale: 0.2
}); });
...@@ -335,7 +333,6 @@ class Emulator { ...@@ -335,7 +333,6 @@ class Emulator {
id: "diag:tobias" id: "diag:tobias"
}).mount(".diag"); }).mount(".diag");
// @ts-ignore: ts(2580)
Button.create("Tobias", require("./res/close.svg")) Button.create("Tobias", require("./res/close.svg"))
.bind("click", () => alert("Hello World")) .bind("click", () => alert("Hello World"))
.mount(".button-area");*/ .mount(".button-area");*/
...@@ -974,7 +971,6 @@ class Emulator { ...@@ -974,7 +971,6 @@ class Emulator {
const img = buttonPause.getElementsByTagName("img")[0]; const img = buttonPause.getElementsByTagName("img")[0];
const span = buttonPause.getElementsByTagName("span")[0]; const span = buttonPause.getElementsByTagName("span")[0];
buttonPause.classList.add("enabled"); buttonPause.classList.add("enabled");
// @ts-ignore: ts(2580)
img.src = require("./res/play.svg"); img.src = require("./res/play.svg");
span.textContent = "Resume"; span.textContent = "Resume";
} }
...@@ -986,7 +982,6 @@ class Emulator { ...@@ -986,7 +982,6 @@ class Emulator {
const img = buttonPause.getElementsByTagName("img")[0]; const img = buttonPause.getElementsByTagName("img")[0];
const span = buttonPause.getElementsByTagName("span")[0]; const span = buttonPause.getElementsByTagName("span")[0];
buttonPause.classList.remove("enabled"); buttonPause.classList.remove("enabled");
// @ts-ignore: ts(2580)
img.src = require("./res/pause.svg"); img.src = require("./res/pause.svg");
span.textContent = "Pause"; span.textContent = "Pause";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment