shadow.d.ts 472 B

12345678910
  1. /**
  2. * Traverses the slots of the open shadowroots and returns all children matching the query.
  3. * @param {ShadowRoot | HTMLElement} root
  4. * @param skipNode
  5. * @param isMatch
  6. * @param {number} maxDepth
  7. * @param {number} depth
  8. * @returns {HTMLElement[]}
  9. */
  10. export declare function queryShadowRoot(root: ShadowRoot | HTMLElement, skipNode: (($elem: HTMLElement) => boolean), isMatch: (($elem: HTMLElement) => boolean), maxDepth?: number, depth?: number): HTMLElement[];