browser-extension-utils 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +5 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3,29 +3,29 @@ export function uniq(array: any[]): any[]
3
3
  export function toCamelCase(text: string): string
4
4
 
5
5
  export function $(
6
- element: HTMLElement | string,
6
+ element: HTMLElement | Document | string,
7
7
  selectors?: string
8
8
  ): HTMLElement
9
9
 
10
10
  export function querySelector(
11
- element: HTMLElement | string,
11
+ element: HTMLElement | Document | string,
12
12
  selectors?: string
13
13
  ): HTMLElement
14
14
 
15
15
  export function $$(
16
- element: HTMLElement | string,
16
+ element: HTMLElement | Document | string,
17
17
  selectors?: string
18
18
  ): HTMLElement[]
19
19
 
20
20
  export function querySelectorAll(
21
- element: HTMLElement | string,
21
+ element: HTMLElement | Document | string,
22
22
  selectors?: string
23
23
  ): HTMLElement[]
24
24
 
25
25
  export function createElement(tagName: string): HTMLElement
26
26
 
27
27
  export function addEventListener(
28
- element: HTMLElement,
28
+ element: HTMLElement | Document | EventTarget,
29
29
  type: string | Record<string, unknown>,
30
30
  listener?
31
31
  ): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-utils",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Utilities for developing browser extensions and userscripts",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",