mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
fix: Better use of @ts-expect-error (#6038)
This commit is contained in:
parent
8b1b4766a1
commit
3fe6bc1b82
24 changed files with 152 additions and 145 deletions
|
@ -30,8 +30,8 @@ import { log, immutableDefine } from "./util.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-expect-error
|
||||
denoNs[internalSymbol] = internalObject;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(denoNs as any)[internalSymbol] = internalObject;
|
||||
|
||||
let windowIsClosing = false;
|
||||
|
||||
|
@ -71,8 +71,8 @@ export function bootstrapMainRuntime(): void {
|
|||
throw new Error("Worker runtime already bootstrapped");
|
||||
}
|
||||
// Remove bootstrapping methods from global scope
|
||||
// @ts-expect-error
|
||||
globalThis.bootstrap = undefined;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(globalThis as any).bootstrap = undefined;
|
||||
log("bootstrapMainRuntime");
|
||||
hasBootstrapped = true;
|
||||
Object.defineProperties(globalThis, windowOrWorkerGlobalScopeMethods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue