whenDefinedAsync
fun <T : HTMLElement> whenDefinedAsync(name: TagName<T>): Promise<CustomElementConstructor<T>>(source)
The whenDefined()
method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.