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