summaryrefslogtreecommitdiff
path: root/tools/update_typescript.md
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2022-04-29 13:47:58 +1000
committerGitHub <noreply@github.com>2022-04-29 13:47:58 +1000
commitef26a267aebd0f625962f019a7b0f45ae189acb9 (patch)
tree71df79c03dd498fe223595664737e5d3e686ebe8 /tools/update_typescript.md
parentde2004dec5607257765fe0a982d988e61bd0ddcd (diff)
fix(cli): add dom.extras lib (#14430)
Closes: #12558 Fixes: #14344
Diffstat (limited to 'tools/update_typescript.md')
-rw-r--r--tools/update_typescript.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/update_typescript.md b/tools/update_typescript.md
index 0b4d54b33..e012c7f77 100644
--- a/tools/update_typescript.md
+++ b/tools/update_typescript.md
@@ -84,6 +84,12 @@ contextual awareness, it is the author's opinion that it is best to spend the
- We add `lib.dom.asynciterables.d.ts` because for some reason TypeScript
has not built these into the libraries. (See:
https://github.com/microsoft/TypeScript/issues/29867)
+ - We add `lib.dom.extras.d.ts` because TypeScript is often behind
+ supporting some DOM standards that Deno supports and when people use
+ `lib: ["dom", "deno.ns"]` they will get error messages that are confusing
+ when using libraries that take advantage of these standards. We add the
+ library to `lib.dom.d.ts`, so it is automatically included when using the
+ `dom` lib under Deno.
7. Based on the changes to the lib files, you will need to edit the map of lib
names to files in the TypeScript compiler (`deno/cli/tsc/00_typescript.js`).
@@ -104,7 +110,7 @@ contextual awareness, it is the author's opinion that it is best to spend the
maps `esnext.*` values to the ratified version of them to ensure they are
less "breaking" so you will want to make sure, like for `esnext.array` that
it points at `lib.esnext.array.d.ts`. You will also want to revert the
- deletion of `dom.asynciterables`.
+ deletion of `dom.asynciterables` and `dom.extras`.
8. For any new lib files that were added, but not included in the snapshot (e.g.
`lib.es####.full.d.ts`) add them to `STATIC_ASSETS` in `deno/cli/tsc.rs`.