Skip to content

Commit 838cbdc

Browse files
authored
fix incorrect type
1 parent 1c33388 commit 838cbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function toggleBlankslate(container: HTMLElement, force: boolean) {
151151
}
152152

153153
function debounce(callback: () => void) {
154-
let timeout: number
154+
let timeout: ReturnType<typeof setTimeout>
155155
return function() {
156156
clearTimeout(timeout)
157157
timeout = setTimeout(() => {

0 commit comments

Comments
 (0)