We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7163e4 commit 49bb1bbCopy full SHA for 49bb1bb
packages/core/src/dom/selector.ts
@@ -1,3 +1,4 @@
1
+import type { ElementList } from "./def";
2
import type { FastjsDom } from "./dom-types";
3
import type { FastjsDomList } from "./dom-list-types";
4
import _dev from "../dev";
@@ -9,7 +10,7 @@ function selector<
9
10
T extends FastjsDom | FastjsDomList | null = FastjsDom | FastjsDomList | null
11
>(
12
target: string = "body",
- parent: Document | HTMLElement | HTMLElement[] = document
13
+ parent: Document | ElementList | ElementList[] = document
14
): T {
15
const result = _selector(target, parent);
16
if (Array.isArray(result))
0 commit comments