🔗 Function: requireDescendant()
requireDescendant<
S
,E
>(host
,selector
):ElementFromSelector
<S
,E
>
Defined in: src/core/dom.ts:362
Assert that an element contains an expected descendant element
🔗 Type Parameters
🔗 S
S
extends string
= string
🔗 E
E
extends Element
= HTMLElement
🔗 Parameters
🔗 host
HTMLElement
Host element
🔗 selector
S
Descendant element to check for
🔗 Returns
ElementFromSelector
<S
, E
>
First found descendant element
🔗 Since
0.13.3
🔗 Throws
If the element does not contain the required descendant element