Skip to content

Commit 49bb1bb

Browse files
committed
feat(core/dom): update type define of selector
1 parent d7163e4 commit 49bb1bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/dom/selector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { ElementList } from "./def";
12
import type { FastjsDom } from "./dom-types";
23
import type { FastjsDomList } from "./dom-list-types";
34
import _dev from "../dev";
@@ -9,7 +10,7 @@ function selector<
910
T extends FastjsDom | FastjsDomList | null = FastjsDom | FastjsDomList | null
1011
>(
1112
target: string = "body",
12-
parent: Document | HTMLElement | HTMLElement[] = document
13+
parent: Document | ElementList | ElementList[] = document
1314
): T {
1415
const result = _selector(target, parent);
1516
if (Array.isArray(result))

0 commit comments

Comments
 (0)