Narrow IntersectionObserver#root type to (Element or Document)
saschanaz opened this issue · 0 comments
saschanaz commented
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
or Document
.