From 7ba2557c42f35af9b6fccbebc78e3c28ced3e367 Mon Sep 17 00:00:00 2001 From: Henry Hsu <62437+hsume2@users.noreply.github.com> Date: Tue, 8 Sep 2020 16:57:37 -0400 Subject: [PATCH] domhandler@3.x starts to includes its own type declarations. Unfortunately, those type declarations are incompatible with @types/domutils and @types/htmlparser2. (#46560) In particular `DomElement` is no longer defined. This PR makes it so we are pinned to the right major version of domhandler compatible with the type definitions here. --- types/domutils/package.json | 6 ++++++ types/htmlparser2/package.json | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 types/domutils/package.json create mode 100644 types/htmlparser2/package.json diff --git a/types/domutils/package.json b/types/domutils/package.json new file mode 100644 index 0000000000..cf87e59367 --- /dev/null +++ b/types/domutils/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "domhandler": "^2.4.0" + } +} diff --git a/types/htmlparser2/package.json b/types/htmlparser2/package.json new file mode 100644 index 0000000000..cf87e59367 --- /dev/null +++ b/types/htmlparser2/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "domhandler": "^2.4.0" + } +}