customElement = (tagName) => (classOrDescriptor) => (typeof classOrDescriptor === 'function') ?
    legacyCustomElement(tagName, classOrDescriptor) :
    standardCustomElement(tagName, classOrDescriptor)
Class decorator factory that defines the decorated class as a custom element.

@param tagName the name of the custom element to define