define

fun <T : P, P : HTMLElement> define(name: TagName<T>, constructor: CustomElementConstructor<T>, options: ElementDefinitionOptions<P> = definedExternally)(source)

The define() method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.

MDN Reference