Skip to content

Commit 1d96d8c

Browse files
fixed: types
1 parent 8bc0cfc commit 1d96d8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ type Scope = Element
33
| Document
44

55
// borrowed from DOM querySelectorAll
6-
declare function $<K extends keyof HTMLElementTagNameMap>(selectors: K, scope?: Scope): NodeListOf<HTMLElementTagNameMap[K]>;
7-
declare function $<K extends keyof SVGElementTagNameMap>(selectors: K, scope?: Scope): NodeListOf<SVGElementTagNameMap[K]>;
8-
declare function $<E extends Element = Element>(selectors: string, scope?: Scope): NodeListOf<E>;
6+
declare function $<K extends keyof HTMLElementTagNameMap>(selectors: K, scope?: Scope): HTMLElementTagNameMap[K][];
7+
declare function $<K extends keyof SVGElementTagNameMap>(selectors: K, scope?: Scope): SVGElementTagNameMap[K][];
8+
declare function $<E extends Element = Element>(selectors: string, scope?: Scope): E[];
99
declare function $<W extends Window>(selectors: W, scope?: Scope): [W];
1010
declare function $<D extends Document>(selectors: D, scope?: Scope): [D];
1111

0 commit comments

Comments
 (0)