Skip to content

Commit 6a2fdfd

Browse files
committed
fix: 修复 findElement 返回类型
1 parent 31e210d commit 6a2fdfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ async function findAllElement(
6262
async function findElement(
6363
selectors: string,
6464
timeout = 10000
65-
): Promise<Element> {
66-
const element = await findBase<Element>(
65+
): Promise<HTMLElement> {
66+
const element = await findBase<HTMLElement>(
6767
() => document.querySelector(selectors),
6868
el => !!el,
6969
timeout

0 commit comments

Comments
 (0)