@defx/element-interface A function that, given an HTML element name, returns the name of its interface install > npm install @defx/element-interface use const elementInterface = require("@defx/element-interface"); elementInterface("div"); // "HTMLDivElement"