The xmldom types reference TypeScript's DOM typings with /// <reference lib="dom" />. This causes any module that imports xmldom to get the entire DOM typings, including globals like document.
With those globals defined we lose errors when accidentally referencing them, which can obviously cause crashes.
It'd be great if xmldom could pick off only the DOM types that it uses and exports, like DOMImplementation, Document, Node, etc. I'm not sure if this is possible with lib.dom.d.ts
@types/xxxxpackage and had problems.@typespackage versions do not follow SemVer.Definitions by:inindex.d.ts) so they can respond.The xmldom types reference TypeScript's DOM typings with
/// <reference lib="dom" />. This causes any module that imports xmldom to get the entire DOM typings, including globals likedocument.With those globals defined we lose errors when accidentally referencing them, which can obviously cause crashes.
It'd be great if xmldom could pick off only the DOM types that it uses and exports, like
DOMImplementation,Document,Node, etc. I'm not sure if this is possible with lib.dom.d.ts