diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-05-27 00:02:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 10:02:16 -0400 |
commit | 228f9c207f8320908325a553c96e465da08fc617 (patch) | |
tree | 54f2aba9f577d713dcbed5882ae7ae9e53c7baaf /cli/js/web/console.ts | |
parent | 24c36fd8625df6b276108109478a62b4661a0b3f (diff) |
Use ts-expect-error instead of ts-ignore. (#5869)
Diffstat (limited to 'cli/js/web/console.ts')
-rw-r--r-- | cli/js/web/console.ts | 12 |
1 files changed, 6 insertions, 6 deletions
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); }; |