mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
Use ts-expect-error instead of ts-ignore. (#5869)
This commit is contained in:
parent
24c36fd862
commit
228f9c207f
34 changed files with 81 additions and 94 deletions
|
@ -33,7 +33,7 @@ import { setSignals } from "./signals.ts";
|
|||
// TODO: factor out `Deno` global assignment to separate function
|
||||
// Add internal object to Deno object.
|
||||
// This is not exposed as part of the Deno types.
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
denoNs[internalSymbol] = internalObject;
|
||||
|
||||
const encoder = new TextEncoder();
|
||||
|
@ -128,7 +128,7 @@ export function bootstrapWorkerRuntime(
|
|||
throw new Error("Worker runtime already bootstrapped");
|
||||
}
|
||||
// Remove bootstrapping methods from global scope
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
globalThis.bootstrap = undefined;
|
||||
log("bootstrapWorkerRuntime");
|
||||
hasBootstrapped = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue