Skip to content

Commit

Permalink
Use backend-agnostic typing for CallBuilder's timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed May 7, 2024
1 parent 0a35daa commit e1c9609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/horizon/call_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class CallBuilder<
// in the last 15 seconds. The timeout is reset when a new message arrive.
// It prevents closing EventSource object in case of 504 errors as `readyState`
// property is not reliable.
let timeout: NodeJS.Timeout;
let timeout: ReturnType<typeof setTimeout>;

const createTimeout = () => {
timeout = setTimeout(() => {
Expand Down

0 comments on commit e1c9609

Please sign in to comment.