diff --git a/lib/lib.dom.d.ts b/lib/lib.dom.d.ts index 7817a0e426704..ccc1bc044f161 100644 --- a/lib/lib.dom.d.ts +++ b/lib/lib.dom.d.ts @@ -4897,7 +4897,7 @@ interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; - closest(selector: string): Element | null; + closest(selector: string): E | null; /** * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */