Skip to content

Commit 8e94c6b

Browse files
committed
🐛 Fix TS errors when using get with one param
1 parent 38a6d97 commit 8e94c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/DOMUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const get = (selector: string, all: boolean = false) => all
1+
export const get = (selector: string, all?: boolean) => all
22
? document?.querySelectorAll(selector)
33
: document?.querySelector(selector)
44

0 commit comments

Comments
 (0)