Variable customElementsConst

customElements: CustomElementRegistry & {
    getName(constructor): undefined | string;
} = ...

Proxy around the built-in CustomElementRegistry, maintaining a mapping of all registered elements and their corresponding names, which can be queried by calling registry.getName.

Type declaration

  • getName:function
    • Retrieve the name under which the supplied constructor was registered with the CustomElementRegistry.

      Parameters

      • constructor: CustomElementConstructor

        The class constructor to get the name for.

      Returns undefined | string

      The name under which the constructor was registered, if.

Generated using TypeDoc