Skip to content

Commit

Permalink
fix: 🐛 temp fix interval type
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Sep 8, 2023
1 parent 71ecf06 commit 88ae092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default class Manager extends EE<ManagerEvents> {

private stopHeartbeat () {
if (this.heartbeatTimer) {
clearInterval(this.heartbeatTimer)
clearInterval(this.heartbeatTimer as any)
this.heartbeatTimer = undefined
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/whatsapp/event-handler/login-event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class LoginEventHandler extends WhatsAppBase { // FIXME: I have n
if (!this.qrcodeOrLoginCheckTimer) {
return
}
clearInterval(this.qrcodeOrLoginCheckTimer)
clearInterval(this.qrcodeOrLoginCheckTimer as any)
}

public async onAuthenticated () {
Expand Down
2 changes: 1 addition & 1 deletion src/whatsapp/whatsapp-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class WhatsAppBase extends EE<ManagerEvents> {

public clearPendingLogoutEmitTimer () {
if (this.pendingLogoutEmitTimer) {
clearTimeout(this.pendingLogoutEmitTimer)
clearTimeout(this.pendingLogoutEmitTimer as any)
this.pendingLogoutEmitTimer = undefined
}
}
Expand Down

0 comments on commit 88ae092

Please sign in to comment.