Skip to content

Commit

Permalink
Adjust type to avoid node specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrown committed Nov 22, 2024
1 parent 39b376f commit 70c301a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/serialConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SerialConnection extends MeshDevice {
private pipePromise?: Promise<void>;

/* Reference for the heartbeat ping interval so it can be canceled on disconnect. */
private heartbeatInterval?: NodeJS.Timeout | undefined;
private heartbeatInterval?: ReturnType<typeof setInterval> | undefined;

/**
* Fires when `disconnect()` is called, used to instruct serial port and
Expand Down

0 comments on commit 70c301a

Please sign in to comment.