summaryrefslogtreecommitdiff
path: root/cli/js/web
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web')
-rw-r--r--cli/js/web/body.ts2
-rw-r--r--cli/js/web/console.ts12
-rw-r--r--cli/js/web/fetch.ts2
-rw-r--r--cli/js/web/timers.ts4
4 files changed, 9 insertions, 11 deletions
diff --git a/cli/js/web/body.ts b/cli/js/web/body.ts
index 9c4997755..ffe3f0e59 100644
--- a/cli/js/web/body.ts
+++ b/cli/js/web/body.ts
@@ -100,7 +100,6 @@ export class Body implements domTypes.Body {
}
if (this._bodySource instanceof ReadableStreamImpl) {
- // @ts-ignore
this._stream = this._bodySource;
}
if (typeof this._bodySource === "string") {
@@ -290,7 +289,6 @@ export class Body implements domTypes.Body {
enc.encode(this._bodySource).buffer as ArrayBuffer
);
} else if (this._bodySource instanceof ReadableStreamImpl) {
- // @ts-ignore
return bufferFromStream(this._bodySource.getReader());
} else if (this._bodySource instanceof FormData) {
const enc = new TextEncoder();
diff --git a/cli/js/web/console.ts b/cli/js/web/console.ts
index 7a3f9241e..69c9d3137 100644
--- a/cli/js/web/console.ts
+++ b/cli/js/web/console.ts
@@ -223,7 +223,7 @@ function groupEntries<T>(
let order = "padStart";
if (value !== undefined) {
for (let i = 0; i < entries.length; i++) {
- //@ts-ignore
+ //@ts-expect-error
if (typeof value[i] !== "number" && typeof value[i] !== "bigint") {
order = "padEnd";
break;
@@ -239,7 +239,7 @@ function groupEntries<T>(
for (; j < max - 1; j++) {
// In future, colors should be taken here into the account
const padding = maxLineLength[j - i];
- //@ts-ignore
+ //@ts-expect-error
str += `${entries[j]}, `[order](padding, " ");
}
if (order === "padStart") {
@@ -412,7 +412,7 @@ function createMapString(
},
group: false,
};
- //@ts-ignore
+ //@ts-expect-error
return createIterableString(value, ctx, level, maxLevel, printConfig);
}
@@ -494,7 +494,7 @@ function createRawObjectString(
let baseString = "";
let shouldShowDisplayName = false;
- // @ts-ignore
+ // @ts-expect-error
let displayName = value[Symbol.toStringTag];
if (!displayName) {
displayName = getClassInstanceName(value);
@@ -515,7 +515,7 @@ function createRawObjectString(
for (const key of symbolKeys) {
entries.push(
`${key.toString()}: ${stringifyWithQuotes(
- // @ts-ignore
+ // @ts-expect-error
value[key],
ctx,
level + 1,
@@ -949,7 +949,7 @@ export class Console {
name: "Trace",
message,
};
- // @ts-ignore
+ // @ts-expect-error
Error.captureStackTrace(err, this.trace);
this.error((err as Error).stack);
};
diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts
index ec75d67cb..a56ebe772 100644
--- a/cli/js/web/fetch.ts
+++ b/cli/js/web/fetch.ts
@@ -282,7 +282,7 @@ export async function fetch(
method = input.method;
headers = input.headers;
- //@ts-ignore
+ //@ts-expect-error
if (input._bodySource) {
body = new DataView(await input.arrayBuffer());
}
diff --git a/cli/js/web/timers.ts b/cli/js/web/timers.ts
index 90b6bba94..87b23de06 100644
--- a/cli/js/web/timers.ts
+++ b/cli/js/web/timers.ts
@@ -239,7 +239,7 @@ export function setTimeout(
...args: Args
): number {
checkBigInt(delay);
- // @ts-ignore
+ // @ts-expect-error
checkThis(this);
return setTimer(cb, delay, args, false);
}
@@ -250,7 +250,7 @@ export function setInterval(
...args: Args
): number {
checkBigInt(delay);
- // @ts-ignore
+ // @ts-expect-error
checkThis(this);
return setTimer(cb, delay, args, true);
}