Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
00323d04
Verified
Commit
00323d04
authored
2 years ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
fix: removed ts-ignore statement
parent
c06d5e55
No related branches found
No related tags found
1 merge request
!8
Support for react.js components
Pipeline
#1083
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/web/index.ts
+0
-5
0 additions, 5 deletions
examples/web/index.ts
with
0 additions
and
5 deletions
examples/web/index.ts
+
0
−
5
View file @
00323d04
...
...
@@ -39,7 +39,6 @@ const KEYS: Record<string, number> = {
s
:
PadKey
.
B
};
// @ts-ignore: ts(2580)
const
ROM_PATH
=
require
(
"
../../res/roms/20y.gb
"
);
// Enumeration that describes the multiple pixel
...
...
@@ -153,7 +152,6 @@ class Emulator {
// also sets the default color on screen to indicate the issue
if
(
isPanic
)
{
await
this
.
clearCanvas
(
undefined
,
{
// @ts-ignore: ts(2580)
image
:
require
(
"
./res/storm.png
"
),
imageScale
:
0.2
});
...
...
@@ -335,7 +333,6 @@ class Emulator {
id: "diag:tobias"
}).mount(".diag");
// @ts-ignore: ts(2580)
Button.create("Tobias", require("./res/close.svg"))
.bind("click", () => alert("Hello World"))
.mount(".button-area");*/
...
...
@@ -974,7 +971,6 @@ class Emulator {
const
img
=
buttonPause
.
getElementsByTagName
(
"
img
"
)[
0
];
const
span
=
buttonPause
.
getElementsByTagName
(
"
span
"
)[
0
];
buttonPause
.
classList
.
add
(
"
enabled
"
);
// @ts-ignore: ts(2580)
img
.
src
=
require
(
"
./res/play.svg
"
);
span
.
textContent
=
"
Resume
"
;
}
...
...
@@ -986,7 +982,6 @@ class Emulator {
const
img
=
buttonPause
.
getElementsByTagName
(
"
img
"
)[
0
];
const
span
=
buttonPause
.
getElementsByTagName
(
"
span
"
)[
0
];
buttonPause
.
classList
.
remove
(
"
enabled
"
);
// @ts-ignore: ts(2580)
img
.
src
=
require
(
"
./res/pause.svg
"
);
span
.
textContent
=
"
Pause
"
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment