mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
feat: update to TypeScript 4.0 (#6514)
This commit is contained in:
parent
9b0f9c8765
commit
c4d5b01acf
58 changed files with 30837 additions and 24467 deletions
|
@ -72,7 +72,8 @@ unitTest(function DenoNamespaceImmutable(): void {
|
|||
}
|
||||
assert(denoCopy === Deno);
|
||||
try {
|
||||
delete window.Deno;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
delete (window as any).Deno;
|
||||
} catch {
|
||||
// pass
|
||||
}
|
||||
|
@ -87,7 +88,8 @@ unitTest(function DenoNamespaceImmutable(): void {
|
|||
}
|
||||
assert(readFile === Deno.readFile);
|
||||
try {
|
||||
delete window.Deno.readFile;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
delete (window as any).Deno.readFile;
|
||||
} catch {
|
||||
// pass
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue