Skip to content

Commit 007df57

Browse files
committed
fix: type hmr reconnect timer portably
1 parent 37a3986 commit 007df57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fresh/src/runtime/client/dev_hmr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IS_BROWSER } from "../shared.ts";
33
let ws: WebSocket;
44
let revision = 0;
55

6-
let reconnectTimer: number;
6+
let reconnectTimer: ReturnType<typeof setTimeout>;
77
const backoff = [
88
// Wait 100ms initially, because we could also be
99
// disconnected because of a form submit.

0 commit comments

Comments
 (0)