diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-10-21 21:57:01 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 21:57:01 +1100 |
commit | 0fb39f9176c5bfb6a8cd50addd85d596fe93c459 (patch) | |
tree | 7f9fb50e53d8cd4b5caaa1f7769a3aa13489149e /cli/tsc | |
parent | be89bdfed7feea01aa606f4202d23a8d9fa06473 (diff) |
feat(cli): add types for WeakRef/FinalizationRegistry (#8056)
Fixes #8051
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 4 |
1 files changed, 4 insertions, 0 deletions
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( |