Closed
Description
Inside dom.generated.d.ts:
interface ElementTraversal {
readonly childElementCount: number;
readonly firstElementChild: Element;
readonly lastElementChild: Element;
readonly nextElementSibling: Element;
readonly previousElementSibling: Element;
}
should be:
interface ElementTraversal {
readonly childElementCount: number;
readonly firstElementChild: Element | null;
readonly lastElementChild: Element | null;
readonly nextElementSibling: Element | null;
readonly previousElementSibling: Element | null;
}
Example: https://jsfiddle.net/tkrotoff/khzbrkpg/
(tested with [email protected] lib.dom.d.ts)