Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 058fbc0

Browse files
authored
fix incorrect type
1 parent 9ac730f commit 058fbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async function fetchWithNetworkEvents(el: Element, url: string, options: Request
143143
}
144144

145145
function debounce(callback: () => void) {
146-
let timeout: number
146+
let timeout: ReturnType<typeof setTimeout>
147147
return function() {
148148
clearTimeout(timeout)
149149
timeout = setTimeout(() => {

0 commit comments

Comments
 (0)