0

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?

Jonathan
  • 4,724
  • 7
  • 45
  • 65

0 Answers0