Skip to content

Commit

Permalink
Fixed linting error after upgrading typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 9, 2023
1 parent dab8e4f commit 3d1c011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ export function toError(errorOrMessage: unknown, defaultMessage = "Unknown Error
/**
* Unrefs a timeout or interval. When called, the active Timeout object will not require the Node.js event loop to remain active
*/
export function allowProcessToExitWithoutWaitingForTimerOrInterval(timeoutOrIntervalId: ReturnType<typeof setTimeout> | ReturnType<typeof setInterval> | undefined): void {
export function allowProcessToExitWithoutWaitingForTimerOrInterval(timeoutOrIntervalId: ReturnType<typeof setTimeout> | undefined): void {
if (typeof timeoutOrIntervalId === "object" && "unref" in timeoutOrIntervalId) {
(timeoutOrIntervalId as { unref: () => ReturnType<typeof setTimeout> | ReturnType<typeof setInterval> }).unref();
(timeoutOrIntervalId as { unref: () => ReturnType<typeof setTimeout> }).unref();
}
}

0 comments on commit 3d1c011

Please sign in to comment.