From 0fb39f9176c5bfb6a8cd50addd85d596fe93c459 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 21 Oct 2020 21:57:01 +1100 Subject: feat(cli): add types for WeakRef/FinalizationRegistry (#8056) Fixes #8051 --- cli/tsc/99_main_compiler.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/tsc') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 4bef1bd8b..91bce61e3 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -488,6 +488,10 @@ delete Object.prototype.__proto__; ts.libMap.set("deno.shared_globals", "lib.deno.shared_globals.d.ts"); ts.libMap.set("deno.unstable", "lib.deno.unstable.d.ts"); + // TODO(@kitsonk) remove once added to TypeScript + ts.libs.push("esnext.weakref"); + ts.libMap.set("esnext.weakref", "lib.esnext.weakref.d.ts"); + // this pre-populates the cache at snapshot time of our library files, so they // are available in the future when needed. host.getSourceFile( -- cgit v1.2.3