Closed saschanaz closed 3 years ago
Since the dictionary only receives (Element or Document), the attribute should naturally be also be (Element or Document).
(Element or Document)
Doing so will help generating better TypeScript type information so that users can easily see it can only be either Element or Document.
Element
Document
Since the dictionary only receives
(Element or Document)
, the attribute should naturally be also be(Element or Document)
.Doing so will help generating better TypeScript type information so that users can easily see it can only be either
Element
orDocument
.