Commit 5e8bb53
committed
fix: type reconnectTimer as setTimeout return value
The runtime type of setTimeout's return value changed to a Timeout object,
so the explicit `number` annotation no longer type-checks. Using
`ReturnType<typeof setTimeout>` keeps the declaration accurate across
runtimes.1 parent 39b5f06 commit 5e8bb53
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments