Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 317 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 317 Bytes

@atomico/wrapper

Captura el registro de los customElements para asi lograr optener su tagName

import { getDefinition } from "@atomico/wrapper";

class MyElement extends HTMLElement {}

customElements.define("my-element", MyElement);

console.log(getDefinition(MyElement)); // ["my-element", undefined];