There is a constructor declared in HTMLElement
in the TypeScript declaration file for DOM stuff: https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L7019
However, you can't do new HTMLElement();
, so why is it declared?
There is a constructor declared in HTMLElement
in the TypeScript declaration file for DOM stuff: https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L7019
However, you can't do new HTMLElement();
, so why is it declared?