Skip to main content

Variable: query

const query: <T>(host, selector) => T = shadow

Defined in: src/testing/elements.ts:48

Find an element in a custom element's shadow root (throws if missing). Same as shadow.

Find an element in a custom element's shadow root (throws if missing).

Type Parameters​

T​

T extends Element = HTMLElement

Parameters​

host​

Element

selector​

string

Returns​

T