Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"eslintcache",
"hono",
"privkey",
"geomanist"
"geomanist",
"nodenext"
],
"ignorePaths": [
"CHANGELOG.md",
Expand Down
8 changes: 4 additions & 4 deletions client-src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* global __resourceQuery, __webpack_hash__ */
/// <reference types="webpack/module" />

// @ts-expect-error
import hotEmitter from "webpack/hot/emitter.js";
// @ts-expect-error
Expand Down Expand Up @@ -54,10 +52,12 @@ import sendMessage from "./utils/sendMessage.js";
*/
const decodeOverlayOptions = (overlayOptions) => {
if (typeof overlayOptions === "object") {
for (const property_ of ["warnings", "errors", "runtimeErrors"]) {
const requiredOptions = ["warnings", "errors", "runtimeErrors"];

for (let i = 0; i < requiredOptions.length; i++) {
const property =
/** @type {keyof Omit<RawOverlayOptions, "trustedTypesPolicyName">} */
(property_);
(requiredOptions[i]);

if (typeof overlayOptions[property] === "string") {
const overlayFilterFunctionString = decodeURIComponent(
Expand Down
3 changes: 2 additions & 1 deletion client-src/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import ansiHTML from "ansi-html-community";
*/
// @ts-expect-error
const getCodePoint = String.prototype.codePointAt
? (input, position) => input.codePointAt(position)
? // @ts-expect-error
(input, position) => input.codePointAt(position)
: (input, position) =>
(input.charCodeAt(position) - 0xd800) * 0x400 +
input.charCodeAt(position + 1) -
Expand Down
6 changes: 0 additions & 6 deletions client-src/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function defineProgressElement() {
this.animationTimer = null;
}

// @ts-expect-error
#reset() {
clearTimeout(this.animationTimer);
this.animationTimer = null;
Expand All @@ -44,7 +43,6 @@ export function defineProgressElement() {
this.#update(this.initialProgress);
}

// @ts-expect-error
static #circularTemplate() {
return `
<style>
Expand Down Expand Up @@ -111,7 +109,6 @@ export function defineProgressElement() {
`;
}

// @ts-expect-error
static #linearTemplate() {
return `
<style>
Expand Down Expand Up @@ -173,7 +170,6 @@ export function defineProgressElement() {
/**
* @param {number} percent percent
*/
// @ts-expect-error
#update(percent) {
const shadowRoot = /** @type {ShadowRoot} */ (this.shadowRoot);
const element =
Expand Down Expand Up @@ -201,7 +197,6 @@ export function defineProgressElement() {
}
}

// @ts-expect-error
#show() {
const shadowRoot = /** @type {ShadowRoot} */ (this.shadowRoot);
const element =
Expand All @@ -210,7 +205,6 @@ export function defineProgressElement() {
element.classList.remove("hidden");
}

// @ts-expect-error
#hide() {
const shadowRoot = /** @type {ShadowRoot} */ (this.shadowRoot);
const element =
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@types/node": "^24.0.14",
"@types/node-forge": "^1.3.1",
"@types/sockjs-client": "^1.5.1",
"@types/trusted-types": "^2.0.2",
"@types/trusted-types": "^2.0.7",
"acorn": "^8.14.0",
"babel-jest": "^30.0.4",
"babel-loader": "^10.0.0",
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.client.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"target": "esnext",
"lib": ["es5", "dom", "webworker", "es2022.error"],
"module": "nodenext",
"moduleResolution": "nodenext",
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": true,
"types": ["@types/trusted-types", "webpack/module"],
"skipDefaultLibCheck": true,
"esModuleInterop": true
},
Expand Down