UNPKG

@augment-vir/web

Version:

A collection of augments, helpers types, functions, and classes only for web (frontend) JavaScript environments.

25 lines (24 loc) 879 B
import { type PartialWithUndefined } from '@augment-vir/common'; /** * Options for {@link queryThroughShadow}. * * @category Web : Elements * @category Package : @augment-vir/web * @package [`@augment-vir/web`](https://www.npmjs.com/package/@augment-vir/web) */ export type QueryThroughShadowOptions = PartialWithUndefined<{ all: boolean; }>; export declare function queryThroughShadow(element: Element | ShadowRoot, query: string | { tagName: string; }, options: { all: true; }): Element[]; export declare function queryThroughShadow(element: Element | ShadowRoot, query: string | { tagName: string; }, options?: { all?: false | undefined; }): Element | undefined; export declare function queryThroughShadow(element: Element | ShadowRoot, query: string | { tagName: string; }, options?: QueryThroughShadowOptions): Element | Element[] | undefined;